Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

addGlobalMetadata top-level pathFilter #10591

Closed
filt3rek opened this issue Feb 13, 2022 · 0 comments
Closed

addGlobalMetadata top-level pathFilter #10591

filt3rek opened this issue Feb 13, 2022 · 0 comments
Assignees

Comments

@filt3rek
Copy link
Contributor

filt3rek commented Feb 13, 2022

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 ?

@Simn Simn self-assigned this Feb 14, 2022
@Simn Simn closed this as completed in ead8870 Feb 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants