*/
AbstractVariable VariableDeclaratorId() :
{
- final Variable var;
- AbstractVariable expression = null;
+ AbstractVariable var;
}
{
try {
var = Variable()
(
LOOKAHEAD(2)
- expression = VariableSuffix(var)
+ var = VariableSuffix(var)
)*
{
- if (expression == null) {
- return var;
- }
- return expression;
+ return var;
}
} catch (ParseException e) {
errorMessage = "'$' expected for variable identifier";