Skip to content

Commit

Permalink
Adjust AjASTConverter to JDT Core StringLiteralConcatenation changes
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kriegisch <[email protected]>
  • Loading branch information
kriegaex committed Feb 12, 2024
1 parent 1287b1b commit adc4df4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2040,10 +2040,11 @@ public InfixExpression convert(StringLiteralConcatenation expression) {
expression.computeConstant();
final InfixExpression infixExpression = new InfixExpression(this.ast);
infixExpression.setOperator(InfixExpression.Operator.PLUS);
org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression[] stringLiterals = expression.literals;
org.aspectj.org.eclipse.jdt.internal.compiler.ast.Expression[] stringLiterals = expression.getLiterals();
int stringLiteralsSize = stringLiterals.length;
infixExpression.setLeftOperand(super.convert(stringLiterals[0]));
infixExpression.setRightOperand(super.convert(stringLiterals[1]));
for (int i = 2; i < expression.counter; i++) {
for (int i = 2; i < stringLiteralsSize; i++) {
infixExpression.extendedOperands().add(super.convert(stringLiterals[i]));
}
if (this.resolveBindings) {
Expand Down

0 comments on commit adc4df4

Please sign in to comment.