if (rememberedVar == false && lhs != null
&& lhs instanceof FieldReference) {
if (fMethodVariables != null) {
- VariableInfo lhsInfo = new VariableInfo(
- ((FieldReference) lhs).sourceStart);
- fMethodVariables.put(new String(
- ((FieldReference) lhs).token), lhsInfo);
+ VariableInfo lhsInfo = new VariableInfo (((FieldReference) lhs).sourceStart);
+ fMethodVariables.put (new String (((FieldReference) lhs).token), lhsInfo);
}
}
break;
+
+ case TERNARY_SHORT:
case PLUS_EQUAL:
case MINUS_EQUAL:
case MULTIPLY_EQUAL:
expression.sourceEnd = scanner.getCurrentTokenEndPosition();
}
break;
+
+ case TERNARY_SHORT:
+ getNextToken();
+ expression = new EqualExpression(expression, expr_without_variable (only_variable, initHandler, bColonAllowed), OperatorIds.TERNARY_SHORT);
+ break;
+
case QUESTION:
getNextToken();
Expression valueIfTrue = expr_without_variable (true, null, true);
getNextToken();
Expression valueIfFalse = expr();
- expression = new ConditionalExpression(expression,
- valueIfTrue, valueIfFalse);
+ expression = new ConditionalExpression (expression, valueIfTrue, valueIfFalse);
break;
default:
return expression;