Skip to content

GROOVY-12173: Left-factor parser rules to reduce lookahead on hot parse paths#2720

Merged
daniellansun merged 1 commit into
masterfrom
GROOVY-12173
Jul 18, 2026
Merged

GROOVY-12173: Left-factor parser rules to reduce lookahead on hot parse paths#2720
daniellansun merged 1 commit into
masterfrom
GROOVY-12173

GROOVY-12173: Left-factor parser rules to reduce lookahead on hot par…

5b48b03
Select commit
Loading
Failed to load commit list.
SonarQubeCloud / SonarCloud Code Analysis succeeded Jul 18, 2026 in 2m 13s

Annotations

Check warning on line 3443 in src/main/java/org/apache/groovy/parser/antlr4/AstBuilder.java

See this annotation in the file changed.

@sonarqubecloud sonarqubecloud / SonarCloud Code Analysis

A "Brain Method" was detected. Refactor it to reduce at least one of the following metrics: LOC from 70 to 64, Complexity from 17 to 14, Nesting Level from 3 to 2, Number of Variables from 24 to 6.

See more on https://sonarcloud.io/project/issues?id=apache_groovy&issues=AZ9045NDGPmZJSHOvOgU&open=AZ9045NDGPmZJSHOvOgU&pullRequest=2720