Search in sources :

Example 1 with TypeParameterTreeImpl

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);
}
Also used : TypeParameterTreeImpl(org.sonar.java.model.TypeParameterTreeImpl) IdentifierTreeImpl(org.sonar.java.model.expression.IdentifierTreeImpl)

Aggregations

TypeParameterTreeImpl (org.sonar.java.model.TypeParameterTreeImpl)1 IdentifierTreeImpl (org.sonar.java.model.expression.IdentifierTreeImpl)1