in src/main/java/org/apache/sling/scripting/sightly/java/compiler/impl/ExpressionTranslator.java [76:90]
public void visit(PropertyAccess propertyAccess) {
if (typeInfo.typeOf(propertyAccess.getTarget()) == Type.MAP) {
//Special optimization for maps
visit(propertyAccess.getTarget());
source.startCall(SourceGenConstants.MAP_GET, true);
visit(propertyAccess.getProperty());
source.endCall();
} else {
source.objectModel().startCall(SourceGenConstants.ROM_RESOLVE_PROPERTY, true);
visit(propertyAccess.getTarget());
source.separateArgument();
visit(propertyAccess.getProperty());
source.endCall();
}
}