use of org.sonar.java.model.InternalSyntaxSpacing in project sonar-java by SonarSource.
the class JavaNodeBuilder method createNonTerminal.
@Override
public Object createNonTerminal(GrammarRuleKey ruleKey, Rule rule, List<Object> children, int startIndex, int endIndex) {
for (Object child : children) {
if (child instanceof InternalSyntaxToken) {
InternalSyntaxToken syntaxToken = (InternalSyntaxToken) child;
syntaxToken.setGrammarRuleKey(ruleKey);
return child;
}
}
return new InternalSyntaxSpacing(startIndex, endIndex);
}
Aggregations