package jetbrains.mps.lang.smodel.generator.baseLanguage.template.main; /*Generated by MPS */ import jetbrains.mps.generator.runtime.Generated; import jetbrains.mps.generator.runtime.MapConfigBase; import jetbrains.mps.generator.runtime.TemplateMappingConfiguration; import java.util.Collection; import jetbrains.mps.generator.runtime.TemplateReductionRule; import org.jetbrains.annotations.NotNull; import jetbrains.mps.generator.runtime.TemplateModel; import jetbrains.mps.smodel.SNodePointer; import jetbrains.mps.generator.runtime.TemplateUtil; import jetbrains.mps.generator.runtime.ReductionRuleBase; import jetbrains.mps.generator.runtime.TemplateRuleWithCondition; import jetbrains.mps.smodel.adapter.structure.MetaAdapterFactory; import jetbrains.mps.generator.runtime.TemplateContext; import jetbrains.mps.generator.runtime.GenerationException; import jetbrains.mps.generator.template.ReductionRuleQueryContext; import org.jetbrains.mps.openapi.model.SNode; import jetbrains.mps.generator.runtime.TemplateExecutionEnvironment; import jetbrains.mps.generator.template.BaseMappingRuleContext; import jetbrains.mps.smodel.SReference; import org.jetbrains.mps.openapi.persistence.PersistenceFacade; import jetbrains.mps.generator.template.SourceSubstituteMacroNodeContext; import org.jetbrains.mps.openapi.model.SNodeAccessUtil; import jetbrains.mps.generator.impl.DismissTopMappingRuleException; import java.util.Collections; @Generated public class Mapping_mc_assignmentStatement extends MapConfigBase implements TemplateMappingConfiguration { private final Collection<TemplateReductionRule> rules; public Mapping_mc_assignmentStatement(@NotNull TemplateModel model) { super(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1206551858932"), "mc_assignmentStatement", model, false); rules = TemplateUtil.<TemplateReductionRule>asCollection(new Mapping_mc_assignmentStatement.ReductionRule0(), new Mapping_mc_assignmentStatement.ReductionRule1(), new Mapping_mc_assignmentStatement.ReductionRule2(), new Mapping_mc_assignmentStatement.ReductionRule3()); } @Override public Collection<TemplateReductionRule> getReductionRules() { return rules; } public final class ReductionRule0 extends ReductionRuleBase implements TemplateRuleWithCondition { public ReductionRule0() { super(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1206552028913"), MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c77f1e96L, "jetbrains.mps.baseLanguage.structure.AssignmentExpression"), false); } @Override public boolean isApplicable(@NotNull TemplateContext context) throws GenerationException { return QueriesGenerated.baseMappingRule_Condition_1206552037838(new ReductionRuleQueryContext(context, getRuleNode())); } @Override public Collection<SNode> apply(@NotNull final TemplateContext context) throws GenerationException { final TemplateExecutionEnvironment environment = context.getEnvironment(); Collection<SNode> tlist1 = null; if (QueriesGenerated.baseMappingRule_Condition_1206552173985(new BaseMappingRuleContext(context, rule_b1hjv9_b0a0c0c3))) { final SNode tnode2 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfbbebabf09L, "StaticMethodCall")); try { tnode2.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), tnode2, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298519"))); tnode2.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), tnode2, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298525"))); TemplateContext context1 = context.subContext(); { Collection<SNode> tlist3 = null; final SNode copySrcInput3 = QueriesGenerated.sourceNodeQuery_1206552330295(new SourceSubstituteMacroNodeContext(context1, copySrcMacro_b1hjv9_b0a0c0d0b0c0c3)); tlist3 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput3), copySrcMacro_b1hjv9_b0a0c0d0b0c0c3, "tpl/r:00000000-0000-4000-0000-011c89590303/1206552330293", context1); for (SNode child4 : TemplateUtil.asNotNull(tlist3)) { tnode2.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child4); } // TODO validate child } { Collection<SNode> tlist5 = null; try { SNode callInputNode5 = QueriesGenerated.sourceNodeQuery_6506750610319434818(new SourceSubstituteMacroNodeContext(context1, includeMacro_b1hjv9_b0a0a0a1a4a1a2a2d)); TemplateContext context2 = context1.subContext(null, callInputNode5); if (callInputNode5 != null) { try { tlist5 = new Template_reduce_PropertyDeclaration_SProperty().apply(environment, context2); } finally { } } } finally { } for (SNode child6 : TemplateUtil.asNotNull(tlist5)) { tnode2.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child6); } // TODO validate child } { Collection<SNode> tlist7 = null; final SNode copySrcInput7 = QueriesGenerated.sourceNodeQuery_1206552330326(new SourceSubstituteMacroNodeContext(context1, copySrcMacro_b1hjv9_b0a0c0f0b0c0c3)); tlist7 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput7), copySrcMacro_b1hjv9_b0a0c0f0b0c0c3, "tpl/r:00000000-0000-4000-0000-011c89590303/1206552330324", context1); for (SNode child8 : TemplateUtil.asNotNull(tlist7)) { tnode2.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child8); } // TODO validate child } } finally { } tlist1 = TemplateUtil.singletonList(tnode2); } else { final SNode tnode9 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfbbebabf09L, "StaticMethodCall")); try { tnode9.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), tnode9, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298525"))); tnode9.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), tnode9, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298519"))); TemplateContext context3 = context.subContext(); { Collection<SNode> tlist10 = null; final SNode copySrcInput10 = QueriesGenerated.sourceNodeQuery_1206554731880(new SourceSubstituteMacroNodeContext(context3, copySrcMacro_b1hjv9_b0a0c0d0b0a2a2d)); tlist10 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput10), copySrcMacro_b1hjv9_b0a0c0d0b0a2a2d, "tpl/r:00000000-0000-4000-0000-011c89590303/1206554731878", context3); for (SNode child11 : TemplateUtil.asNotNull(tlist10)) { tnode9.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child11); } // TODO validate child } { Collection<SNode> tlist12 = null; try { SNode callInputNode12 = QueriesGenerated.sourceNodeQuery_6506750610319430007(new SourceSubstituteMacroNodeContext(context3, includeMacro_b1hjv9_b0a0a0a1a4a1a0c0c3)); TemplateContext context4 = context3.subContext(null, callInputNode12); if (callInputNode12 != null) { try { tlist12 = new Template_reduce_PropertyDeclaration_SProperty().apply(environment, context4); } finally { } } } finally { } for (SNode child13 : TemplateUtil.asNotNull(tlist12)) { tnode9.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child13); } // TODO validate child } { final SNode tnode14 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf8cc67c7fbL, "PlusExpression")); try { TemplateContext context5 = context3.subContext(); { final SNode tnode15 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf93d565d10L, "StringLiteral")); try { SNodeAccessUtil.setProperty(tnode15, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""); } finally { } tnode14.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11cL, "leftExpression"), tnode15); // TODO validate child } { final SNode tnode16 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfb4ed32b7fL, "ParenthesizedExpression")); try { TemplateContext context6 = context5.subContext(); { Collection<SNode> tlist17 = null; final SNode copySrcInput17 = QueriesGenerated.sourceNodeQuery_1206554788479(new SourceSubstituteMacroNodeContext(context6, copySrcMacro_b1hjv9_b0a0c0b0b0c0b0f0b0a2a2d)); tlist17 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput17), copySrcMacro_b1hjv9_b0a0c0b0b0c0b0f0b0a2a2d, "tpl/r:00000000-0000-4000-0000-011c89590303/1206554788477", context6); for (SNode child18 : TemplateUtil.asNotNull(tlist17)) { tnode16.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfb4ed32b7fL, 0xfb4ed32b80L, "expression"), child18); } // TODO validate child } } finally { } tnode14.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11bL, "rightExpression"), tnode16); // TODO validate child } } finally { } tnode9.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), tnode14); // TODO validate child } } finally { } tlist1 = TemplateUtil.singletonList(tnode9); } return tlist1; } } public final class ReductionRule1 extends ReductionRuleBase implements TemplateRuleWithCondition { public ReductionRule1() { super(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229466109664"), MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11b0d1476d2L, "jetbrains.mps.baseLanguage.structure.PlusAssignmentExpression"), false); } @Override public boolean isApplicable(@NotNull TemplateContext context) throws GenerationException { return QueriesGenerated.baseMappingRule_Condition_1229466109777(new ReductionRuleQueryContext(context, getRuleNode())); } @Override public Collection<SNode> apply(@NotNull final TemplateContext context) throws GenerationException { final TemplateExecutionEnvironment environment = context.getEnvironment(); Collection<SNode> tlist1 = null; if (QueriesGenerated.baseMappingRule_Condition_1229466109667(new BaseMappingRuleContext(context, rule_b1hjv9_b0a0c0c4))) { final SNode tnode2 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfbbebabf09L, "StaticMethodCall")); try { tnode2.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), tnode2, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298519"))); tnode2.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), tnode2, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298525"))); TemplateContext context1 = context.subContext(); { Collection<SNode> tlist3 = null; final SNode copySrcInput3 = QueriesGenerated.sourceNodeQuery_1229466109687(new SourceSubstituteMacroNodeContext(context1, copySrcMacro_b1hjv9_b0a0c0d0b0c0c4)); tlist3 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput3), copySrcMacro_b1hjv9_b0a0c0d0b0c0c4, "tpl/r:00000000-0000-4000-0000-011c89590303/1229466109685", context1); for (SNode child4 : TemplateUtil.asNotNull(tlist3)) { tnode2.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child4); } // TODO validate child } { Collection<SNode> tlist5 = null; try { SNode callInputNode5 = QueriesGenerated.sourceNodeQuery_6506750610319460936(new SourceSubstituteMacroNodeContext(context1, includeMacro_b1hjv9_b0a0a0a1a4a1a2a2e)); TemplateContext context2 = context1.subContext(null, callInputNode5); if (callInputNode5 != null) { try { tlist5 = new Template_reduce_PropertyDeclaration_SProperty().apply(environment, context2); } finally { } } } finally { } for (SNode child6 : TemplateUtil.asNotNull(tlist5)) { tnode2.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child6); } // TODO validate child } { final SNode tnode7 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf8cc67c7fbL, "PlusExpression")); try { TemplateContext context3 = context1.subContext(); { final SNode tnode8 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfbbebabf09L, "StaticMethodCall")); try { tnode8.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), tnode8, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298719"))); tnode8.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), tnode8, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298519"))); TemplateContext context4 = context3.subContext(); { Collection<SNode> tlist9 = null; final SNode copySrcInput9 = QueriesGenerated.sourceNodeQuery_1229466901393(new SourceSubstituteMacroNodeContext(context4, copySrcMacro_b1hjv9_b0a0c0d0b0b0b0f0b0c0c4)); tlist9 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput9), copySrcMacro_b1hjv9_b0a0c0d0b0b0b0f0b0c0c4, "tpl/r:00000000-0000-4000-0000-011c89590303/1229466901391", context4); for (SNode child10 : TemplateUtil.asNotNull(tlist9)) { tnode8.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child10); } // TODO validate child } { Collection<SNode> tlist11 = null; try { SNode callInputNode11 = QueriesGenerated.sourceNodeQuery_6506750610319440124(new SourceSubstituteMacroNodeContext(context4, includeMacro_b1hjv9_b0a0a0a1a4a1a1a1a5a1a2a2e)); TemplateContext context5 = context4.subContext(null, callInputNode11); if (callInputNode11 != null) { try { tlist11 = new Template_reduce_PropertyDeclaration_SProperty().apply(environment, context5); } finally { } } } finally { } for (SNode child12 : TemplateUtil.asNotNull(tlist11)) { tnode8.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child12); } // TODO validate child } { final SNode tnode13 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf93d565d10L, "StringLiteral")); try { SNodeAccessUtil.setProperty(tnode13, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""); } finally { } tnode8.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), tnode13); // TODO validate child } } finally { } tnode7.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11cL, "leftExpression"), tnode8); // TODO validate child } { Collection<SNode> tlist14 = null; final SNode copySrcInput14 = QueriesGenerated.sourceNodeQuery_1229466630019(new SourceSubstituteMacroNodeContext(context3, copySrcMacro_b1hjv9_b0a0c0c0b0f0b0c0c4)); tlist14 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput14), copySrcMacro_b1hjv9_b0a0c0c0b0f0b0c0c4, "tpl/r:00000000-0000-4000-0000-011c89590303/1229466630017", context3); for (SNode child15 : TemplateUtil.asNotNull(tlist14)) { tnode7.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11bL, "rightExpression"), child15); } // TODO validate child } } finally { } tnode2.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), tnode7); // TODO validate child } } finally { } tlist1 = TemplateUtil.singletonList(tnode2); } else if (QueriesGenerated.baseMappingRule_Condition_1229467146762(new BaseMappingRuleContext(context, rule_b1hjv9_b0a0c0c4))) { final SNode tnode16 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfbbebabf09L, "StaticMethodCall")); try { tnode16.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), tnode16, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298525"))); tnode16.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), tnode16, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298519"))); TemplateContext context6 = context.subContext(); { Collection<SNode> tlist17 = null; final SNode copySrcInput17 = QueriesGenerated.sourceNodeQuery_1229469943818(new SourceSubstituteMacroNodeContext(context6, copySrcMacro_b1hjv9_b0a0c0d0b0a2a2e)); tlist17 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput17), copySrcMacro_b1hjv9_b0a0c0d0b0a2a2e, "tpl/r:00000000-0000-4000-0000-011c89590303/1229469943816", context6); for (SNode child18 : TemplateUtil.asNotNull(tlist17)) { tnode16.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child18); } // TODO validate child } { Collection<SNode> tlist19 = null; try { SNode callInputNode19 = QueriesGenerated.sourceNodeQuery_6506750610319479234(new SourceSubstituteMacroNodeContext(context6, includeMacro_b1hjv9_b0a0a0a1a4a1a0c0c4)); TemplateContext context7 = context6.subContext(null, callInputNode19); if (callInputNode19 != null) { try { tlist19 = new Template_reduce_PropertyDeclaration_SProperty().apply(environment, context7); } finally { } } } finally { } for (SNode child20 : TemplateUtil.asNotNull(tlist19)) { tnode16.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child20); } // TODO validate child } { final SNode tnode21 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf8cc67c7fbL, "PlusExpression")); try { TemplateContext context8 = context6.subContext(); { final SNode tnode22 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf93d565d10L, "StringLiteral")); try { SNodeAccessUtil.setProperty(tnode22, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""); } finally { } tnode21.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11cL, "leftExpression"), tnode22); // TODO validate child } { final SNode tnode23 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfb4ed32b7fL, "ParenthesizedExpression")); try { TemplateContext context9 = context8.subContext(); { final SNode tnode24 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf8cc67c7fbL, "PlusExpression")); try { TemplateContext context10 = context9.subContext(); { final SNode tnode25 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfbbebabf09L, "StaticMethodCall")); try { tnode25.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), tnode25, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298601"))); tnode25.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), tnode25, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298519"))); TemplateContext context11 = context10.subContext(); { Collection<SNode> tlist26 = null; final SNode copySrcInput26 = QueriesGenerated.sourceNodeQuery_1229469966572(new SourceSubstituteMacroNodeContext(context11, copySrcMacro_b1hjv9_b0a0c0d0b0b0b0b0b0c0b0f0b0a2a2e)); tlist26 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput26), copySrcMacro_b1hjv9_b0a0c0d0b0b0b0b0b0c0b0f0b0a2a2e, "tpl/r:00000000-0000-4000-0000-011c89590303/1229469966570", context11); for (SNode child27 : TemplateUtil.asNotNull(tlist26)) { tnode25.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child27); } // TODO validate child } { Collection<SNode> tlist28 = null; try { SNode callInputNode28 = QueriesGenerated.sourceNodeQuery_6506750610319469624(new SourceSubstituteMacroNodeContext(context11, includeMacro_b1hjv9_b0a0a0a1a4a1a1a1a1a1a2a1a5a1a0c0c4)); TemplateContext context12 = context11.subContext(null, callInputNode28); if (callInputNode28 != null) { try { tlist28 = new Template_reduce_PropertyDeclaration_SProperty().apply(environment, context12); } finally { } } } finally { } for (SNode child29 : TemplateUtil.asNotNull(tlist28)) { tnode25.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child29); } // TODO validate child } } finally { } tnode24.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11cL, "leftExpression"), tnode25); // TODO validate child } { Collection<SNode> tlist30 = null; final SNode copySrcInput30 = QueriesGenerated.sourceNodeQuery_1229469966599(new SourceSubstituteMacroNodeContext(context10, copySrcMacro_b1hjv9_b0a0c0c0b0b0b0c0b0f0b0a2a2e)); tlist30 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput30), copySrcMacro_b1hjv9_b0a0c0c0b0b0b0c0b0f0b0a2a2e, "tpl/r:00000000-0000-4000-0000-011c89590303/1229469966597", context10); for (SNode child31 : TemplateUtil.asNotNull(tlist30)) { tnode24.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11bL, "rightExpression"), child31); } // TODO validate child } } finally { } tnode23.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfb4ed32b7fL, 0xfb4ed32b80L, "expression"), tnode24); // TODO validate child } } finally { } tnode21.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11bL, "rightExpression"), tnode23); // TODO validate child } } finally { } tnode16.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), tnode21); // TODO validate child } } finally { } tlist1 = TemplateUtil.singletonList(tnode16); } else { DismissTopMappingRuleException ex_j2x56k_a0b = new DismissTopMappingRuleException(DismissTopMappingRuleException.MessageType.error, "couldn't generate operaton"); ex_j2x56k_a0b.setTemplateContext(context); ex_j2x56k_a0b.setTemplateModelLocation(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229469837507")); throw ex_j2x56k_a0b; } return tlist1; } } public final class ReductionRule2 extends ReductionRuleBase implements TemplateRuleWithCondition { public ReductionRule2() { super(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229469897040"), MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11b0d14a4eaL, "jetbrains.mps.baseLanguage.structure.MinusAssignmentExpression"), false); } @Override public boolean isApplicable(@NotNull TemplateContext context) throws GenerationException { return QueriesGenerated.baseMappingRule_Condition_1229469897209(new ReductionRuleQueryContext(context, getRuleNode())); } @Override public Collection<SNode> apply(@NotNull final TemplateContext context) throws GenerationException { final TemplateExecutionEnvironment environment = context.getEnvironment(); Collection<SNode> tlist1 = null; if (QueriesGenerated.baseMappingRule_Condition_1229469897126(new BaseMappingRuleContext(context, rule_b1hjv9_b0a0c0c5))) { final SNode tnode2 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfbbebabf09L, "StaticMethodCall")); try { tnode2.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), tnode2, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298519"))); tnode2.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), tnode2, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298525"))); TemplateContext context1 = context.subContext(); { Collection<SNode> tlist3 = null; final SNode copySrcInput3 = QueriesGenerated.sourceNodeQuery_1229469897145(new SourceSubstituteMacroNodeContext(context1, copySrcMacro_b1hjv9_b0a0c0d0b0c0c5)); tlist3 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput3), copySrcMacro_b1hjv9_b0a0c0d0b0c0c5, "tpl/r:00000000-0000-4000-0000-011c89590303/1229469897143", context1); for (SNode child4 : TemplateUtil.asNotNull(tlist3)) { tnode2.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child4); } // TODO validate child } { Collection<SNode> tlist5 = null; try { SNode callInputNode5 = QueriesGenerated.sourceNodeQuery_6506750610319502920(new SourceSubstituteMacroNodeContext(context1, includeMacro_b1hjv9_b0a0a0a1a4a1a2a2f)); TemplateContext context2 = context1.subContext(null, callInputNode5); if (callInputNode5 != null) { try { tlist5 = new Template_reduce_PropertyDeclaration_SProperty().apply(environment, context2); } finally { } } } finally { } for (SNode child6 : TemplateUtil.asNotNull(tlist5)) { tnode2.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child6); } // TODO validate child } { final SNode tnode7 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf8cc67c7fbL, "PlusExpression")); try { TemplateContext context3 = context1.subContext(); { final SNode tnode8 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf93d565d10L, "StringLiteral")); try { SNodeAccessUtil.setProperty(tnode8, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), ""); } finally { } tnode7.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11cL, "leftExpression"), tnode8); // TODO validate child } { final SNode tnode9 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfb4ed32b7fL, "ParenthesizedExpression")); try { TemplateContext context4 = context3.subContext(); { final SNode tnode10 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf8cc67c7f5L, "MinusExpression")); try { TemplateContext context5 = context4.subContext(); { final SNode tnode11 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfbbebabf09L, "StaticMethodCall")); try { tnode11.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), tnode11, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298519"))); tnode11.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), tnode11, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527298601"))); TemplateContext context6 = context5.subContext(); { Collection<SNode> tlist12 = null; final SNode copySrcInput12 = QueriesGenerated.sourceNodeQuery_1229470782196(new SourceSubstituteMacroNodeContext(context6, copySrcMacro_b1hjv9_b0a0c0d0b0b0b0b0b0c0b0f0b0c0c5)); tlist12 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput12), copySrcMacro_b1hjv9_b0a0c0d0b0b0b0b0b0c0b0f0b0c0c5, "tpl/r:00000000-0000-4000-0000-011c89590303/1229470782194", context6); for (SNode child13 : TemplateUtil.asNotNull(tlist12)) { tnode11.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child13); } // TODO validate child } { Collection<SNode> tlist14 = null; try { SNode callInputNode14 = QueriesGenerated.sourceNodeQuery_6506750610319496212(new SourceSubstituteMacroNodeContext(context6, includeMacro_b1hjv9_b0a0a0a1a4a1a1a1a1a1a2a1a5a1a2a2f)); TemplateContext context7 = context6.subContext(null, callInputNode14); if (callInputNode14 != null) { try { tlist14 = new Template_reduce_PropertyDeclaration_SProperty().apply(environment, context7); } finally { } } } finally { } for (SNode child15 : TemplateUtil.asNotNull(tlist14)) { tnode11.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child15); } // TODO validate child } } finally { } tnode10.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11cL, "leftExpression"), tnode11); // TODO validate child } { Collection<SNode> tlist16 = null; final SNode copySrcInput16 = QueriesGenerated.sourceNodeQuery_1229470782223(new SourceSubstituteMacroNodeContext(context5, copySrcMacro_b1hjv9_b0a0c0c0b0b0b0c0b0f0b0c0c5)); tlist16 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput16), copySrcMacro_b1hjv9_b0a0c0c0b0b0b0c0b0f0b0c0c5, "tpl/r:00000000-0000-4000-0000-011c89590303/1229470782221", context5); for (SNode child17 : TemplateUtil.asNotNull(tlist16)) { tnode10.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11bL, "rightExpression"), child17); } // TODO validate child } } finally { } tnode9.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfb4ed32b7fL, 0xfb4ed32b80L, "expression"), tnode10); // TODO validate child } } finally { } tnode7.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbdeb6fecfL, 0xfbdeb7a11bL, "rightExpression"), tnode9); // TODO validate child } } finally { } tnode2.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), tnode7); // TODO validate child } } finally { } tlist1 = TemplateUtil.singletonList(tnode2); } else { DismissTopMappingRuleException ex_j2x56k_a0c = new DismissTopMappingRuleException(DismissTopMappingRuleException.MessageType.error, "couldn't generate operaton"); ex_j2x56k_a0c.setTemplateContext(context); ex_j2x56k_a0c.setTemplateModelLocation(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229469897207")); throw ex_j2x56k_a0c; } return tlist1; } } public final class ReductionRule3 extends ReductionRuleBase implements TemplateRuleWithCondition { public ReductionRule3() { super(new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1206558352720"), MetaAdapterFactory.getConcept(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8c77f1e96L, "jetbrains.mps.baseLanguage.structure.AssignmentExpression"), false); } @Override public boolean isApplicable(@NotNull TemplateContext context) throws GenerationException { return QueriesGenerated.baseMappingRule_Condition_1206558374188(new ReductionRuleQueryContext(context, getRuleNode())); } @Override public Collection<SNode> apply(@NotNull final TemplateContext context) throws GenerationException { final TemplateExecutionEnvironment environment = context.getEnvironment(); final SNode tnode1 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xfbbebabf09L, "StaticMethodCall")); try { tnode1.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301adL, "baseMethodDeclaration"), tnode1, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("1612392507789543417"))); tnode1.setReference(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), SReference.create(MetaAdapterFactory.getReferenceLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xfbbebabf09L, 0x10a7588b546L, "classConcept"), tnode1, PersistenceFacade.getInstance().createModelReference("r:c3548bac-30eb-4a2a-937c-0111d5697309(jetbrains.mps.lang.smodel.generator.smodelAdapter)"), PersistenceFacade.getInstance().createNodeId("6599163591527286349"))); TemplateContext context1 = context.subContext(); { Collection<SNode> tlist2 = null; final SNode copySrcInput2 = QueriesGenerated.sourceNodeQuery_8389748773580306852(new SourceSubstituteMacroNodeContext(context1, copySrcMacro_b1hjv9_b0a0c0d0c0c6)); tlist2 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput2), copySrcMacro_b1hjv9_b0a0c0d0c0c6, "tpl/r:00000000-0000-4000-0000-011c89590303/8389748773580306850", context1); for (SNode child3 : TemplateUtil.asNotNull(tlist2)) { tnode1.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child3); } // TODO validate child } { Collection<SNode> tlist4 = null; { final SNode switchInput4 = QueriesGenerated.sourceNodeQuery_8389748773580306863(new SourceSubstituteMacroNodeContext(context1, switchMacroRef_b1hjv9_b0a0a0a1a4a2a2g)); if (switchInput4 == null) { tlist4 = Collections.emptyList(); } else { TemplateContext switchContext4; switchContext4 = context1.subContext(null, switchInput4); tlist4 = environment.trySwitch(templateSwitchNode_b1hjv9_a0a0c0a1a1a4a2a2g, switchContext4); if (tlist4 == null) { final SNode tnode5 = environment.createOutputNode(MetaAdapterFactory.getConcept(MetaAdapterFactory.getLanguage(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"), 0xf93d565d10L, "StringLiteral")); try { SNodeAccessUtil.setProperty(tnode5, MetaAdapterFactory.getProperty(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf93d565d10L, 0xf93d565d11L, "value"), "role"); } finally { } if (tnode5 != null) { tlist4 = TemplateUtil.singletonList(tnode5); } } } } for (SNode child6 : TemplateUtil.asNotNull(tlist4)) { tnode1.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child6); } // TODO validate child } { Collection<SNode> tlist7 = null; final SNode copySrcInput7 = QueriesGenerated.sourceNodeQuery_8389748773580306874(new SourceSubstituteMacroNodeContext(context1, copySrcMacro_b1hjv9_b0a0c0f0c0c6)); tlist7 = environment.copyNodes(TemplateUtil.singletonList(copySrcInput7), copySrcMacro_b1hjv9_b0a0c0f0c0c6, "tpl/r:00000000-0000-4000-0000-011c89590303/8389748773580306872", context1); for (SNode child8 : TemplateUtil.asNotNull(tlist7)) { tnode1.addChild(MetaAdapterFactory.getContainmentLink(0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x11857355952L, 0xf8c78301aeL, "actualArgument"), child8); } // TODO validate child } } finally { } return TemplateUtil.singletonList(tnode1); } } private static SNodePointer rule_b1hjv9_b0a0c0c3 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1206552028913"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0d0b0c0c3 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1206552330294"); private static SNodePointer includeMacro_b1hjv9_b0a0a0a1a4a1a2a2d = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6506750610319434373"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0f0b0c0c3 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1206552330325"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0d0b0a2a2d = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1206554731879"); private static SNodePointer includeMacro_b1hjv9_b0a0a0a1a4a1a0c0c3 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6506750610319429212"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0b0b0c0b0f0b0a2a2d = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1206554788478"); private static SNodePointer rule_b1hjv9_b0a0c0c4 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229466109664"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0d0b0c0c4 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229466109686"); private static SNodePointer includeMacro_b1hjv9_b0a0a0a1a4a1a2a2e = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6506750610319459813"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0d0b0b0b0f0b0c0c4 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229466901392"); private static SNodePointer includeMacro_b1hjv9_b0a0a0a1a4a1a1a1a5a1a2a2e = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6506750610319439335"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0c0b0f0b0c0c4 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229466630018"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0d0b0a2a2e = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229469943817"); private static SNodePointer includeMacro_b1hjv9_b0a0a0a1a4a1a0c0c4 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6506750610319477145"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0d0b0b0b0b0b0c0b0f0b0a2a2e = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229469966571"); private static SNodePointer includeMacro_b1hjv9_b0a0a0a1a4a1a1a1a1a1a2a1a5a1a0c0c4 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6506750610319468209"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0c0b0b0b0c0b0f0b0a2a2e = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229469966598"); private static SNodePointer rule_b1hjv9_b0a0c0c5 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229469897040"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0d0b0c0c5 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229469897144"); private static SNodePointer includeMacro_b1hjv9_b0a0a0a1a4a1a2a2f = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6506750610319501751"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0d0b0b0b0b0b0c0b0f0b0c0c5 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229470782195"); private static SNodePointer includeMacro_b1hjv9_b0a0a0a1a4a1a1a1a1a1a2a1a5a1a2a2f = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "6506750610319495731"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0c0b0b0b0c0b0f0b0c0c5 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1229470782222"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0d0c0c6 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "8389748773580306851"); private static SNodePointer switchMacroRef_b1hjv9_b0a0a0a1a4a2a2g = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "2238065674976419994"); private static SNodePointer templateSwitchNode_b1hjv9_a0a0c0a1a1a4a2a2g = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "1205432344145"); private static SNodePointer copySrcMacro_b1hjv9_b0a0c0f0c0c6 = new SNodePointer("r:00000000-0000-4000-0000-011c89590303(jetbrains.mps.lang.smodel.generator.baseLanguage.template.main@generator)", "8389748773580306873"); }