antlr / antlr/antlr4

Add test for rule named `type`

Open
#907 0 comments 0 reactions 0 assignees View on GitHub
cross-platform-issue type:improvement
Dominant language
Java
Stars
19k
Forks
3.5k
PR merge metrics
No merged PRs in 30d

Description

Not all targets support a parser rule named `type`. However, the Java target does support such a rule. The previous tests which covered this needed to be removed for cross-target support in #906. A new test should be added to specifically cover this case, and the test can be intentionally excluded from any targets which do not support such a rule.

Contributor guide

Open the contributing guide

Research direction

Locate the previous tests removed for cross-target support in #906 and inspect how target-specific tests are organized. Add coverage for a parser rule named `type` in the Java target while excluding targets that do not support it; the test should pass for Java and preserve cross-target compatibility.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
testing
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.