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

Name of @:enum meta is parsed as :kwdenum #30

Closed
Gama11 opened this issue Mar 4, 2016 · 0 comments
Closed

Name of @:enum meta is parsed as :kwdenum #30

Gama11 opened this issue Mar 4, 2016 · 0 comments

Comments

@Gama11
Copy link
Member

Gama11 commented Mar 4, 2016

var parser = new HaxeParser(ByteData.ofString("@:enum abstract Test(Int) {}"), "Test.hx");
var ast = parser.parse();
switch (ast.decls[0].decl) {
    case EAbstract(a): trace(a.meta);
    case _:
}
[{ name => :kwdenum, params => [], pos => { file => Test.hx, max => 6, min => 2 } }]
@Simn Simn closed this as completed in 15e125d Apr 28, 2016
Simn pushed a commit that referenced this issue Sep 6, 2016
This allows having a version check in haxe-checkstyle to deal with #30 (see also HaxeCheckstyle/haxe-checkstyle#262).
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

1 participant