properties.add(property);
}
private SimpleStringLiteral getNameNode(Expression node) {
if (node instanceof IndexExpression) {
IndexExpression indexExpression = (IndexExpression) node;
Expression target = indexExpression.getTarget();
Expression index = indexExpression.getIndex();
if (index instanceof SimpleStringLiteral && isContext(target)) {
return (SimpleStringLiteral) index;
}
}
return null;