Adds new metas that print strings as compiler messages. The user can optionally pass an array of additional meta names which will be treated as warnings.
@:build(interlude.macro.Todo.build(['foo'])) // adds @foo in addition to @note and @todo
class Example {
@note('This will print some info') // output: "Note: 'This will print some info'"
@todo(
'This will', // output: "Warning : Todo: 'This will'"
'generate three', // "Warning : Todo: 'generate three'"
'compiler warnings' // "Warning : Todo: 'compiler warnings'"
)
@foo('user-defined warning') // output: "Warning : Foo: 'User-defined warning'"
final foo:Int = 0;
}