use of org.sonar.java.model.TypeParameterTreeImpl in project sonar-java by SonarSource.
the class TreeFactory method completeTypeParameter.
public TypeParameterTreeImpl completeTypeParameter(Optional<List<AnnotationTreeImpl>> annotations, InternalSyntaxToken identifierToken, Optional<TypeParameterTreeImpl> partial) {
IdentifierTreeImpl identifier = new IdentifierTreeImpl(identifierToken);
completeTypeTreeWithAnnotations(identifier, annotations);
return partial.isPresent() ? partial.get().complete(identifier) : new TypeParameterTreeImpl(identifier);
}
Aggregations