Open Fumapps opened 4 days ago
This alfi.simplifyAlfiLanguage.generator case has to be extended for nested situations:
concept ExpressionStatement --> <T if ($COPY_SRC$<no target> != null) {
$COPY_SRC$
} T>
inheritors false
condition (genContext, node)->boolean {
if (genContext.step object [ node ] :ne: true && AlfSimplificationHelper.isOptionalFeatureInvocationTarget(node.expression)) {
genContext.step object [ node ] = true;
return true;
}
false;
}
What works:
what is simplified to
What is not correctly handled: