Transform function call expression via macros

How this function call decoration can be done with macros?
@api someFunc(); must be transformed into SomeClass.api(someFun());

You can add a @:build() metadata to all types of a package and sub-packages (or add them manually where you want them) with --macro addGlobalMetadata(...) (see haxe.macro.Compiler.addGlobalMetadata()), and handle this in the build function by parsing the expressions there.

A starting point:

1 Like

Rudy, thank you very much:)