Check template use of currentRule.args
Open
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 19k
- Forks
- 3.5k
- PR merge metrics
- No merged PRs in 30d
Description
I believe the reference to currentRule.args on the following line should actually be just args.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open tool/resources/org/antlr/v4/tool/templates/codegen/Java/Java.stg at line 346 and inspect how currentRule.args and args are defined and used in the surrounding template. Verify the generated Java output for a grammar uses the intended argument reference and that the reported currentRule.args reference is gone.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- compilers
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100