readToken(Token.OPERATOR_CLOSESQUARE);
expression = new PropertyExpression(expression, property);
} else if (nextToken == Token.OPERATOR_DOT) {
// transform x.bar to x["bar"]
readToken(Token.OPERATOR_DOT);
Identifier identifier = parseIdentifier();
expression = new PropertyExpression(expression, new StringLiteral(identifier.string));
} else {
return expression;
}
}