You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation says If pathFilter is the empty String "" it matches everything (if recursive = true) or only top-level types (if recursive = false).
If I uderstand well, if I do that : haxe.macro.Compiler.addGlobalMetadata( "", '@:build( Macro.build() )', false ); it should apply this build to all top-level types, so all classes without package (including the haxe std ones) right ?
I mean it should apply the build to my Main class that is without package and the haxe std ones at top level right ?
But here it does nothing, it does'nt apply the build anywhere.
I'm sorry maybe I misunderstand the documentation ?
The text was updated successfully, but these errors were encountered:
Hej,
static addGlobalMetadata(pathFilter:String, meta:String, recursive:Bool = true, toTypes:Bool = true, toFields:Bool = false):Void
The documentation says If pathFilter is the empty String "" it matches everything (if recursive = true) or only top-level types (if recursive = false).
If I uderstand well, if I do that :
haxe.macro.Compiler.addGlobalMetadata( "", '@:build( Macro.build() )', false );
it should apply this build to all top-level types, so all classes without package (including the haxe std ones) right ?I mean it should apply the build to my Main class that is without package and the haxe std ones at top level right ?
But here it does nothing, it does'nt apply the build anywhere.
I'm sorry maybe I misunderstand the documentation ?
The text was updated successfully, but these errors were encountered: