use of org.sonar.java.model.InternalSyntaxToken in project sonar-java by SonarSource.
the class TreeFactory method newArrayTypeTree.
@CheckForNull
private static ArrayTypeTreeImpl newArrayTypeTree(Optional<List<Tuple<InternalSyntaxToken, InternalSyntaxToken>>> dims) {
ArrayTypeTreeImpl result = null;
if (dims.isPresent()) {
for (Tuple<InternalSyntaxToken, InternalSyntaxToken> dim : dims.get()) {
InternalSyntaxToken openBracketToken = dim.first();
InternalSyntaxToken closeBracketToken = dim.second();
result = new ArrayTypeTreeImpl(result, ImmutableList.<AnnotationTreeImpl>of(), openBracketToken, closeBracketToken);
}
}
return result;
}
Aggregations