We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For this rule
compilationUnit locals[CymbolProperties props] @init{$compilationUnit.props = new CymbolProperties();} : (structDeclaration | methodDeclaration | varDeclaration)+ ;
I would expect
ctx.methodDeclaration();
To hand back a list of methodDeclCtxs (ditto for structDecls and varDecls)
However, here is the generated code:
public structDeclarationContext structDeclaration() { return (structDeclarationContext)getRuleContext(structDeclarationContext.class,0); } public varDeclarationContext varDeclaration() { return (varDeclarationContext)getRuleContext(varDeclarationContext.class,0); } public methodDeclarationContext methodDeclaration() { return (methodDeclarationContext)getRuleContext(methodDeclarationContext.class,0); }
The text was updated successfully, but these errors were encountered:
Also, now that getRuleContext is a generic method, the return value cast is unnecessary.
getRuleContext
Sorry, something went wrong.
rm'd already :)
Add regression test for antlr#19 (getter for context is not a list wh…
bfc395d
…en it should be)
This issue has been resolved, and a regression test is added in the associated pull request.
Merge pull request #19 from nburles/fix-utf8-bom
5e31347
Added code to detect and handle the UTF-8 BOM if present
Merge pull request antlr#19 from unosviluppatore/master
c908347
Fixed typos in README
No branches or pull requests
For this rule
I would expect
ctx.methodDeclaration();
To hand back a list of methodDeclCtxs (ditto for structDecls and varDecls)
However, here is the generated code:
The text was updated successfully, but these errors were encountered: