use of org.sonar.java.model.expression.InternalPostfixUnaryExpression in project sonar-java by SonarSource.
the class TreeFactory method newPostfixExpression.
public ExpressionTree newPostfixExpression(ExpressionTree expression, Optional<InternalSyntaxToken> postfixOperator) {
ExpressionTree result = expression;
if (postfixOperator.isPresent()) {
InternalSyntaxToken postfixOperatorToken = postfixOperator.get();
result = new InternalPostfixUnaryExpression(kindMaps.getPostfixOperator((JavaPunctuator) postfixOperator.get().getGrammarRuleKey()), result, postfixOperatorToken);
}
return result;
}
Aggregations