Skip to content
← Back

src/semantic/custom_attribute.ghul

1
namespace Semantic is
2
// A resolved attribute application: the chosen constructor and the
3
// ilasm textual representation of its arguments (`( 01 00 00 00 )`
4
// when there are none), ready for the IL generator to emit as a
5
// `.custom` directive on the target type or method.
6
class CUSTOM_ATTRIBUTE(constructor: Symbols.Function, arguments_text: string) is
7
gen_il_line() -> string => ".custom {constructor.get_il_reference()} = {arguments_text}";
8
si
9
si