@Deprecated
 private static boolean staticCanBeAChild_Old(
     SNode node,
     SNode parentNode,
     SNode link,
     SNode childConcept,
     final IOperationContext operationContext) {
   return (SNodeOperations.getNodeAncestor(
               parentNode,
               MetaAdapterFactory.getConcept(
                   0x22e72e4c0f6946ceL,
                   0x84036750153aa615L,
                   0x220f4a2c4aff4248L,
                   "jetbrains.mps.execution.configurations.structure.ExecuteBeforeTask_ConceptFunction"),
               true,
               false)
           != null)
       || (SNodeOperations.getNodeAncestor(
               parentNode,
               MetaAdapterFactory.getConcept(
                   0x22e72e4c0f6946ceL,
                   0x84036750153aa615L,
                   0x5532ce3cbd91002cL,
                   "jetbrains.mps.execution.configurations.structure.ExecuteConfiguration_Function"),
               true,
               false)
           != null);
 }
 public void applyRule(
     final SNode expr, final TypeCheckingContext typeCheckingContext, IsApplicableStatus status) {
   // todo: do right stuff! =(
   if (!(SPropertyOperations.getString(
           SNodeOperations.getNodeAncestor(
               expr,
               MetaAdapterFactory.getConcept(
                   0xaf65afd8f0dd4942L,
                   0x87d963a55f2a9db1L,
                   0x11d4348057eL,
                   "jetbrains.mps.lang.behavior.structure.ConceptMethodDeclaration"),
               false,
               false),
           MetaAdapterFactory.getProperty(
               0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name"))
       .equals("getScope"))) {
     {
       MessageTarget errorTarget = new NodeMessageTarget();
       IErrorReporter _reporter_2309309498 =
           typeCheckingContext.reportTypeError(
               expr,
               "Should be in getScope method",
               "r:c2d05fc3-fe25-4093-95ce-8e3356e61084(jetbrains.mps.lang.scopes.typesystem)",
               "8077936094962911290",
               null,
               errorTarget);
     }
   }
 }
 /*package*/ static SNode getReturnJumpTarget_idhSV4OYy(@NotNull SNode __thisNode__) {
   SNode container =
       SNodeOperations.getNodeAncestor(
           __thisNode__,
           MetaAdapterFactory.getInterfaceConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x11750ef8265L,
               "jetbrains.mps.baseLanguage.structure.IStatementListContainer"),
           false,
           false);
   if ((boolean)
       IStatementListContainer__BehaviorDescriptor.isExecuteSynchronous_idhTIpcC8.invoke(
           container)) {
     return SLinkOperations.getTarget(
         SNodeOperations.cast(
             container,
             MetaAdapterFactory.getConcept(
                 0xfd3920347849419dL,
                 0x907112563d152375L,
                 0x1174bed3125L,
                 "jetbrains.mps.baseLanguage.closures.structure.ClosureLiteral")),
         MetaAdapterFactory.getContainmentLink(
             0xfd3920347849419dL, 0x907112563d152375L, 0x1174bed3125L, 0x1174bf0522fL, "body"));
   }
   return null;
 }
 public static String virtual_getFqName_1213877404258(SNode thisNode) {
   SNode containingClassifier =
       SNodeOperations.getNodeAncestor(
           thisNode,
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101d9d3ca30L,
               "jetbrains.mps.baseLanguage.structure.Classifier"),
           false,
           false);
   return (containingClassifier != null
       ? InternalAnonymousClass_Behavior.call_getAnonymousClassPresentation_3421461530438560331(
               thisNode, containingClassifier)
           + BehaviorReflection.invokeVirtual(
               String.class,
               containingClassifier,
               "virtual_getFqName_1213877404258",
               new Object[] {})
       : BehaviorReflection.invokeSuper(
           String.class,
           thisNode,
           "jetbrains.mps.baseLanguage.structure.ClassConcept",
           "virtual_getFqName_1213877404258",
           new Object[] {}));
 }
 public static String call_getAnonymousClassPresentation_3421461530438560331(
     SNode thisNode, SNode containingClassifier) {
   String result = "Anonymous in ";
   SNode containingMethod =
       SNodeOperations.getNodeAncestor(
           thisNode,
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0xf8cc56b1fcL,
               "jetbrains.mps.baseLanguage.structure.BaseMethodDeclaration"),
           false,
           false);
   if (containingMethod != null
       && SNodeOperations.getParent(containingMethod) == containingClassifier) {
     result +=
         SPropertyOperations.getString(
                 containingMethod,
                 MetaAdapterFactory.getProperty(
                     0xceab519525ea4f22L,
                     0x9b92103b95ca8c0cL,
                     0x110396eaaa4L,
                     0x110396ec041L,
                     "name"))
             + "() in ";
   }
   return result;
 }
 private boolean needToComment(EditorContext editorContext) {
   if (SNodeOperations.isInstanceOf(
       SNodeOperations.getParent(myNode),
       MetaAdapterFactory.getConcept(
           0xceab519525ea4f22L,
           0x9b92103b95ca8c0cL,
           0x3dcc194340c24debL,
           "jetbrains.mps.lang.core.structure.BaseCommentAttribute"))) {
     return false;
   } else if ((SNodeOperations.getNodeAncestor(
           myNode,
           MetaAdapterFactory.getConcept(
               0xceab519525ea4f22L,
               0x9b92103b95ca8c0cL,
               0x3dcc194340c24debL,
               "jetbrains.mps.lang.core.structure.BaseCommentAttribute"),
           false,
           false)
       == null)) {
     return true;
   } else {
     Selection selection = editorContext.getSelectionManager().getSelection();
     if ((selection instanceof EditorCellLabelSelection
         && !(((EditorCellLabelSelection) selection).hasNonTrivialSelection()))) {
       return false;
     } else {
       return true;
     }
   }
 }
 private static String getGroupPrefix_idhEwJa7y(@NotNull SNode __thisNode__) {
   String prefix = "";
   SNode parentGroup =
       SNodeOperations.getNodeAncestor(
           __thisNode__,
           MetaAdapterFactory.getConcept(
               0x28f9e4973b424291L,
               0xaeba0a1039153ab1L,
               0x1181da058d2L,
               "jetbrains.mps.lang.plugin.structure.ActionGroupDeclaration"),
           false,
           false);
   if (parentGroup != null) {
     prefix =
         ActionGroupDeclaration_BehaviorDescriptor.getGroupPrefix_idhEwJa7y.invoke(parentGroup)
             + SPropertyOperations.getString(
                 parentGroup,
                 MetaAdapterFactory.getProperty(
                     0xceab519525ea4f22L,
                     0x9b92103b95ca8c0cL,
                     0x110396eaaa4L,
                     0x110396ec041L,
                     "name"));
   }
   return prefix;
 }
 private static SNode getReferentConcept_idhEwIhhr(@NotNull SNode __thisNode__) {
   if ((SNodeOperations.getNodeAncestor(
           __thisNode__,
           MetaAdapterFactory.getConcept(
               0xaf65afd8f0dd4942L,
               0x87d963a55f2a9db1L,
               0x11d43447b1aL,
               "jetbrains.mps.lang.behavior.structure.ConceptBehavior"),
           false,
           false)
       != null)) {
     return SLinkOperations.getTarget(
         SNodeOperations.cast(
             SNodeOperations.getContainingRoot(__thisNode__),
             MetaAdapterFactory.getConcept(
                 0xaf65afd8f0dd4942L,
                 0x87d963a55f2a9db1L,
                 0x11d43447b1aL,
                 "jetbrains.mps.lang.behavior.structure.ConceptBehavior")),
         MetaAdapterFactory.getReferenceLink(
             0xaf65afd8f0dd4942L, 0x87d963a55f2a9db1L, 0x11d43447b1aL, 0x11d43447b1fL, "concept"));
   }
   if ((SNodeOperations.getNodeAncestor(
           __thisNode__,
           MetaAdapterFactory.getConcept(
               0x3f4bc5f5c6c14a28L,
               0x8b10c83066ffa4a1L,
               0x11a7208faaeL,
               "jetbrains.mps.lang.constraints.structure.ConceptConstraints"),
           false,
           false)
       != null)) {
     return SLinkOperations.getTarget(
         SNodeOperations.getNodeAncestor(
             __thisNode__,
             MetaAdapterFactory.getConcept(
                 0x3f4bc5f5c6c14a28L,
                 0x8b10c83066ffa4a1L,
                 0x11a7208faaeL,
                 "jetbrains.mps.lang.constraints.structure.ConceptConstraints"),
             false,
             false),
         MetaAdapterFactory.getReferenceLink(
             0x3f4bc5f5c6c14a28L, 0x8b10c83066ffa4a1L, 0x11a7208faaeL, 0x11a720969b6L, "concept"));
   }
   return null;
 }
 public void execute(final SNode node, final EditorContext editorContext) {
   SNode parameter =
       ListSequence.fromList(
               SLinkOperations.getChildren(
                   node,
                   MetaAdapterFactory.getContainmentLink(
                       0xf3061a5392264cc5L,
                       0xa443f952ceaf5816L,
                       0x11857355952L,
                       0xf8c78301aeL,
                       "actualArgument")))
           .first();
   SNodeOperations.replaceWithAnother(
       parameter,
       SLinkOperations.getTarget(
           SNodeOperations.getNodeAncestor(
               node,
               MetaAdapterFactory.getConcept(
                   0xf3061a5392264cc5L,
                   0xa443f952ceaf5816L,
                   0x116b46a08c4L,
                   "jetbrains.mps.baseLanguage.structure.DotExpression"),
               false,
               false),
           MetaAdapterFactory.getContainmentLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x116b46a08c4L,
               0x116b46a4416L,
               "operand")));
   SLinkOperations.setTarget(
       SNodeOperations.getNodeAncestor(
           node,
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x116b46a08c4L,
               "jetbrains.mps.baseLanguage.structure.DotExpression"),
           false,
           false),
       MetaAdapterFactory.getContainmentLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x116b46a08c4L, 0x116b46a4416L, "operand"),
       parameter);
 }
 protected SNode findContainer(SNode node) {
   return SNodeOperations.getNodeAncestor(
       node,
       MetaAdapterFactory.getConcept(
           0xf3061a5392264cc5L,
           0xa443f952ceaf5816L,
           0xf8c108ca66L,
           "jetbrains.mps.baseLanguage.structure.ClassConcept"),
       false,
       false);
 }
 private static SNode getCommandDeclaration_id5keEkmeCqIg(@NotNull SNode __thisNode__) {
   return SNodeOperations.getNodeAncestor(
       __thisNode__,
       MetaAdapterFactory.getConcept(
           0xf3347d8a0e794f35L,
           0x8ac91574f25c986fL,
           0xbe3a0d5ba1a2be8L,
           "jetbrains.mps.execution.commands.structure.CommandDeclaration"),
       false,
       false);
 }
 public static List<SNode> call_getDescendants_3816167865390609214(
     SNode __thisNode__, SModel model) {
   List<SNode> result = new ArrayList<SNode>();
   SNode container =
       SNodeOperations.getNodeAncestor(
           __thisNode__,
           MetaAdapterFactory.getConcept(
               0x132aa4d8a3f7441cL,
               0xa7eb3fce23492c6aL,
               0x6524536b2e1a1e3bL,
               "jetbrains.mps.baseLanguage.builders.structure.SimpleBuilders"),
           false,
           false);
   for (SNode builder :
       SimpleBuilders_BehaviorDescriptor.getDescendands_id4wDZIZrG$7X.invoke(container, model)) {
     for (SNode dcl :
         SLinkOperations.getChildren(
             builder,
             MetaAdapterFactory.getContainmentLink(
                 0x132aa4d8a3f7441cL,
                 0xa7eb3fce23492c6aL,
                 0x6524536b2e1a1e3bL,
                 0x6524536b2e1a1e3dL,
                 "builder"))) {
       if (SNodeOperations.isInstanceOf(
               dcl,
               MetaAdapterFactory.getConcept(
                   0x132aa4d8a3f7441cL,
                   0xa7eb3fce23492c6aL,
                   0x6524536b2e1a1e38L,
                   "jetbrains.mps.baseLanguage.builders.structure.SimpleBuilderDeclaration"))
           && SimpleBuilderDeclaration_BehaviorDescriptor.isDescendant_id3jPK7hzRvLl.invoke(
               SNodeOperations.cast(
                   dcl,
                   MetaAdapterFactory.getConcept(
                       0x132aa4d8a3f7441cL,
                       0xa7eb3fce23492c6aL,
                       0x6524536b2e1a1e38L,
                       "jetbrains.mps.baseLanguage.builders.structure.SimpleBuilderDeclaration")),
               __thisNode__)) {
         ListSequence.fromList(result)
             .addElement(
                 SNodeOperations.cast(
                     dcl,
                     MetaAdapterFactory.getConcept(
                         0x132aa4d8a3f7441cL,
                         0xa7eb3fce23492c6aL,
                         0x6524536b2e1a1e38L,
                         "jetbrains.mps.baseLanguage.builders.structure.SimpleBuilderDeclaration")));
       }
     }
   }
   return result;
 }
 /*package*/ static void perform_iddCRb6FLnvk(@NotNull SNode __thisNode__, SNode node) {
   NodeDataFlowCheckerUtil.checkDataFlow(
       SNodeOperations.getNodeAncestor(
           node,
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0xf8cc56b200L,
               "jetbrains.mps.baseLanguage.structure.StatementList"),
           false,
           false));
 }
 public static List<SNode> getPossibleCatches(SNode source, List<SNode> catchClauses) {
   List<SNode> result = new ArrayList<SNode>();
   SNode statement =
       SNodeOperations.getNodeAncestor(
           source,
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0xf8cc56b215L,
               "jetbrains.mps.baseLanguage.structure.Statement"),
           false,
           false);
   Set<SNode> uncaughtThrowables =
       Statement_Behavior.call_uncaughtThrowables_5412515780383108857(statement, false);
   for (SNode catchClause : catchClauses) {
     SNode caughtType =
         SLinkOperations.getTarget(
             SLinkOperations.getTarget(
                 catchClause,
                 MetaAdapterFactory.getContainmentLink(
                     0xf3061a5392264cc5L,
                     0xa443f952ceaf5816L,
                     0x10f39a56e2fL,
                     0x10f39a6a2f1L,
                     "throwable")),
             MetaAdapterFactory.getContainmentLink(
                 0xf3061a5392264cc5L,
                 0xa443f952ceaf5816L,
                 0x450368d90ce15bc3L,
                 0x4ed4d318133c80ceL,
                 "type"));
     if (TypeChecker.getInstance()
             .getSubtypingManager()
             .isSubtype(caughtType, _quotation_createNode_l1x7gt_b0a0a1a3a1())
         || TypeChecker.getInstance()
             .getSubtypingManager()
             .isSubtype(caughtType, _quotation_createNode_l1x7gt_b0a0a1a3a1_0())
         || TypeChecker.getInstance()
             .getSubtypingManager()
             .isSubtype(_quotation_createNode_l1x7gt_a0a0b0d0b(), caughtType)) {
       ListSequence.fromList(result).addElement(catchClause);
     } else {
       for (SNode throwed : uncaughtThrowables) {
         if (TypeChecker.getInstance()
             .getSubtypingManager()
             .isSubtype(_quotation_createNode_l1x7gt_a0a0a0a0b0d0b(throwed), caughtType)) {
           ListSequence.fromList(result).addElement(catchClause);
         }
       }
     }
   }
   return result;
 }
Exemple #15
0
 private static boolean renderingCondition_zc016d_a0(SNode node, EditorContext editorContext) {
   return SNodeOperations.getNodeAncestor(
           node,
           MetaAdapterFactory.getConcept(
               0xde1ad86d6e504a02L,
               0xb306d4d17f64c375L,
               0xa835f28c1aa02beL,
               "jetbrains.mps.console.base.structure.History"),
           false,
           false)
       == null;
 }
 private static Boolean needConceptFunction_idhZKliUO(@NotNull SNode __thisNode__) {
   // we could use this cf parameter in ITemplateCall argument expressions
   return (SNodeOperations.getNodeAncestor(
           __thisNode__,
           MetaAdapterFactory.getInterfaceConcept(
               0xb401a68083254110L,
               0x8fd384331ff25befL,
               0x17e941d108ce3120L,
               "jetbrains.mps.lang.generator.structure.ITemplateCall"),
           false,
           false)
       == null);
 }
 @Override
 public boolean isApplicable(AnActionEvent event, final Map<String, Object> _params) {
   return !(event.getData(MPSEditorDataKeys.EDITOR_CONTEXT).isInspector())
       && (SNodeOperations.getNodeAncestor(
               event.getData(MPSCommonDataKeys.NODE),
               MetaAdapterFactory.getConcept(
                   0xaf65afd8f0dd4942L,
                   0x87d963a55f2a9db1L,
                   0x11d43447b1aL,
                   "jetbrains.mps.lang.behavior.structure.ConceptBehavior"),
               true,
               false)
           != null);
 }
 public static SNode weaving_MappingRule_ContextNodeQuery_3771754276239012919(
     final WeavingMappingRuleContext _context) {
   return _context.getOutputNodeByInputNodeAndMappingLabel(
       SNodeOperations.getNodeAncestor(
           _context.getNode(),
           MetaAdapterFactory.getConcept(
               0xb1ccc903f5a942d1L,
               0xadd980ac0e69d662L,
               0x3236df431b7f1b53L,
               "jetbrains.mps.samples.generator_demo.demoLang7.structure.XMLDocument"),
           false,
           false),
       "main-class");
 }
Exemple #19
0
 @Override
 protected boolean isApplicable(TransformationMenuContext _context) {
   return eq_uewb7w_a0a0a7(
       SNodeOperations.getParent(
           SNodeOperations.getNodeAncestor(
               _context.getNode(),
               MetaAdapterFactory.getConcept(
                   0x49a08c51fe543ccL,
                   0xbd998b46d641d7f5L,
                   0x2de971c785f06a3fL,
                   "jetbrains.mps.samples.Kaja.structure.CommandList"),
               false,
               false)),
       SNodeOperations.getContainingRoot(_context.getNode()));
 }
 public static int call_getIndexInContainingClass_3421461530438560434(SNode thisNode) {
   final SNode ancestor =
       SNodeOperations.getNodeAncestor(
           thisNode,
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101d9d3ca30L,
               "jetbrains.mps.baseLanguage.structure.Classifier"),
           false,
           false);
   int index =
       ListSequence.fromList(
                   SNodeOperations.getNodeDescendantsWhereConceptInList(
                       ancestor,
                       new SAbstractConcept[] {
                         MetaAdapterFactory.getConcept(
                             0xf3061a5392264cc5L,
                             0xa443f952ceaf5816L,
                             0x1107e0cb103L,
                             "jetbrains.mps.baseLanguage.structure.AnonymousClass"),
                         MetaAdapterFactory.getConcept(
                             0xdf345b11b8c74213L,
                             0xac6648d2a9b75d88L,
                             0x2f7b79225e746809L,
                             "jetbrains.mps.baseLanguageInternal.structure.InternalAnonymousClass")
                       },
                       false,
                       new SAbstractConcept[] {}))
               .where(
                   new IWhereFilter<SNode>() {
                     public boolean accept(SNode it) {
                       return SNodeOperations.getNodeAncestor(
                               it,
                               MetaAdapterFactory.getConcept(
                                   0xf3061a5392264cc5L,
                                   0xa443f952ceaf5816L,
                                   0x101d9d3ca30L,
                                   "jetbrains.mps.baseLanguage.structure.Classifier"),
                               false,
                               false)
                           == ancestor;
                     }
                   })
               .indexOf(thisNode)
           + 1;
   return index;
 }
 public static boolean static_canBeAChild(
     SNode node,
     SNode parentNode,
     SNode link,
     SNode childConcept,
     final IOperationContext operationContext) {
   return SNodeOperations.getNodeAncestor(
           parentNode,
           MetaAdapterFactory.getConcept(
               0xd4615e3bd6714ba9L,
               0xaf012b78369b0ba7L,
               0x108a9cb4791L,
               "jetbrains.mps.lang.pattern.structure.PatternExpression"),
           false,
           false)
       != null;
 }
 public static boolean static_canBeAChild(
     SNode node,
     SNode parentNode,
     SNode link,
     SNode childConcept,
     final IOperationContext operationContext) {
   return (SNodeOperations.getNodeAncestor(
               parentNode,
               MetaAdapterFactory.getConcept(
                   0x756e911c3f1f4a48L,
                   0xbdf5a2ceb91b723cL,
                   0xd244b712f91012dL,
                   "jetbrains.mps.execution.settings.structure.EditorOperationDeclaration"),
               true,
               false)
           == null)
       && (TypeChecker.getInstance()
               .getRuntimeSupport()
               .coerce_(
                   TypeChecker.getInstance()
                       .getTypeOf(
                           SLinkOperations.getTarget(
                               SNodeOperations.as(
                                   parentNode,
                                   MetaAdapterFactory.getConcept(
                                       0xf3061a5392264cc5L,
                                       0xa443f952ceaf5816L,
                                       0x116b46a08c4L,
                                       "jetbrains.mps.baseLanguage.structure.DotExpression")),
                               MetaAdapterFactory.getContainmentLink(
                                   0xf3061a5392264cc5L,
                                   0xa443f952ceaf5816L,
                                   0x116b46a08c4L,
                                   0x116b46a4416L,
                                   "operand"))),
                   HUtil.createMatchingPatternByConcept(
                       MetaAdapterFactory.getConcept(
                           0x756e911c3f1f4a48L,
                           0xbdf5a2ceb91b723cL,
                           0xd244b712f91001cL,
                           "jetbrains.mps.execution.settings.structure.PersistentConfigurationType")),
                   true)
           != null);
 }
 public void applyRule(
     final SNode constructorInvocation,
     final TypeCheckingContext typeCheckingContext,
     IsApplicableStatus status) {
   SNode constructor =
       SNodeOperations.getNodeAncestor(
           constructorInvocation,
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0xf8cc56b204L,
               "jetbrains.mps.baseLanguage.structure.ConstructorDeclaration"),
           false,
           false);
   if (constructor != null) {
     SNode statementList =
         SLinkOperations.getTarget(
             constructor,
             MetaAdapterFactory.getContainmentLink(
                 0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b1fcL, 0xf8cc56b1ffL, "body"));
     SNode firstStatement =
         StatementList_Behavior.call_getFirstStatement_5420652334935371934(statementList);
     if (firstStatement != constructorInvocation) {
       {
         MessageTarget errorTarget = new NodeMessageTarget();
         IErrorReporter _reporter_2309309498 =
             typeCheckingContext.reportTypeError(
                 constructorInvocation,
                 "Call to '"
                     + BehaviorReflection.invokeVirtual(
                         String.class,
                         constructorInvocation,
                         "virtual_getPresentation_1213877396640",
                         new Object[] {})
                     + "' must be first statement in constructor body",
                 "r:00000000-0000-4000-0000-011c895902c5(jetbrains.mps.baseLanguage.typesystem)",
                 "3133930811460325358",
                 null,
                 errorTarget);
       }
     }
   }
 }
 public static String call_getJavaName_3421461530438560397(SNode thisNode) {
   SNode ancestor =
       SNodeOperations.getNodeAncestor(
           thisNode,
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101d9d3ca30L,
               "jetbrains.mps.baseLanguage.structure.Classifier"),
           false,
           true);
   if ((ancestor == null)) {
     return BehaviorReflection.invokeVirtual(
         String.class, thisNode, "virtual_getFqName_1213877404258", new Object[] {});
   }
   return BehaviorReflection.invokeVirtual(
           String.class, ancestor, "virtual_getFqName_1213877404258", new Object[] {})
       + "$"
       + InternalAnonymousClass_Behavior.call_getIndexInContainingClass_3421461530438560434(
           thisNode);
 }
 private static Scope getArgumentsScope_id460OzqriLdX(@NotNull SNode __thisNode__, SNode kind) {
   {
     SAbstractConcept cncpt = SNodeOperations.asSConcept((kind));
     if (SConceptOperations.isSubConceptOf(
         SNodeOperations.asSConcept(cncpt),
         MetaAdapterFactory.getConcept(
             0xf3061a5392264cc5L,
             0xa443f952ceaf5816L,
             0xf8c37a7f6eL,
             "jetbrains.mps.baseLanguage.structure.VariableDeclaration"))) {
       return new EmptyScope();
     }
     if (SConceptOperations.isSubConceptOf(
         SNodeOperations.asSConcept(cncpt),
         MetaAdapterFactory.getConcept(
             0xdcb5a83a19a844ffL,
             0xa4cbfc7d324ecc63L,
             0x1f6c736337b5e2cbL,
             "jetbrains.mps.core.xml.sax.structure.XMLSAXAttributeRule"))) {
       return SimpleRoleScope.forNamedElements(
           SNodeOperations.getNodeAncestor(
               __thisNode__,
               MetaAdapterFactory.getConcept(
                   0xdcb5a83a19a844ffL,
                   0xa4cbfc7d324ecc63L,
                   0x1f6c736337b5e2f2L,
                   "jetbrains.mps.core.xml.sax.structure.XMLSAXNodeRule"),
               false,
               false),
           MetaAdapterFactory.getContainmentLink(
               0xdcb5a83a19a844ffL,
               0xa4cbfc7d324ecc63L,
               0x1f6c736337b5e2f2L,
               0x1f6c736337b5e2f4L,
               "attrs"));
     }
   }
   return null;
 }
Exemple #26
0
 public static Object propertyMacro_GetPropertyValue_2990235398087273707(
     final PropertyMacroContext _context) {
   SNode irb =
       SNodeOperations.getNodeAncestor(
           SLinkOperations.getTarget(
               _context.getNode(),
               MetaAdapterFactory.getReferenceLink(
                   0x982eb8df2c964bd7L,
                   0x996311712ea622e5L,
                   0x7c8b08a50a39c6c7L,
                   0x7c8b08a50a39c6c8L,
                   "declaration")),
           MetaAdapterFactory.getConcept(
               0x982eb8df2c964bd7L,
               0x996311712ea622e5L,
               0x7c8b08a50a39c6bdL,
               "jetbrains.mps.lang.resources.structure.OldIconBundle"),
           false,
           false);
   return JavaNameUtil.packageName(SNodeOperations.getModel(irb))
       + "."
       + OldIconBundle__BehaviorDescriptor.getJavaName_id7Mb2akaesvf.invoke(irb);
 }
 private static SNode getExpectedReturnType_idhEwIGRD(@NotNull SNode __thisNode__) {
   if (__thisNode__ == null) {
     return null;
   }
   SNode hostMenuPart =
       SNodeOperations.getNodeAncestor(
           __thisNode__,
           MetaAdapterFactory.getConcept(
               0x18bc659203a64e29L,
               0xa83a7ff23bde13baL,
               0x10f34f8c0deL,
               "jetbrains.mps.lang.editor.structure.CellMenuPart_Abstract"),
           false,
           false);
   SNode editedLink =
       CellMenuPart_Abstract_BehaviorDescriptor.getEditedLink_idhJEvotS.invoke(hostMenuPart);
   SNode conceptOfChild =
       SLinkOperations.getTarget(
           editedLink,
           MetaAdapterFactory.getReferenceLink(
               0xc72da2b97cce4447L, 0x8389f407dc1158b7L, 0xf979bd086aL, 0xf98055fef0L, "target"));
   return _quotation_createNode_jf8h0a_a4a0(conceptOfChild);
 }
  public void applyRule(
      final SNode macro, final TypeCheckingContext typeCheckingContext, IsApplicableStatus status) {
    SNode containingTemplate =
        SNodeOperations.getNodeAncestor(
            macro,
            MetaAdapterFactory.getConcept(
                0xb401a68083254110L,
                0x8fd384331ff25befL,
                0xfe43cb41d0L,
                "jetbrains.mps.lang.generator.structure.TemplateDeclaration"),
            false,
            false);
    SNode includedTemplate =
        SLinkOperations.getTarget(
            macro,
            MetaAdapterFactory.getReferenceLink(
                0xb401a68083254110L,
                0x8fd384331ff25befL,
                0x11621ab7715L,
                0x11621b434a7L,
                "includeTemplate"));

    if ((includedTemplate == null)) {
      {
        MessageTarget errorTarget = new NodeMessageTarget();
        IErrorReporter _reporter_2309309498 =
            typeCheckingContext.reportTypeError(
                macro,
                "No template",
                "r:00000000-0000-4000-0000-011c895902e4(jetbrains.mps.lang.generator.typesystem)",
                "7260186302264328988",
                null,
                errorTarget);
      }
    } else if ((containingTemplate == null)) {
      if (!(ListSequence.fromList(
              SLinkOperations.getChildren(
                  includedTemplate,
                  MetaAdapterFactory.getContainmentLink(
                      0xb401a68083254110L,
                      0x8fd384331ff25befL,
                      0xda3dc6e5137e9b1L,
                      0xda3dc6e5137ea56L,
                      "parameter")))
          .isEmpty())) {
        {
          MessageTarget errorTarget = new NodeMessageTarget();
          IErrorReporter _reporter_2309309498 =
              typeCheckingContext.reportTypeError(
                  macro,
                  "Cannot include template with arguments",
                  "r:00000000-0000-4000-0000-011c895902e4(jetbrains.mps.lang.generator.typesystem)",
                  "7260186302264329007",
                  null,
                  errorTarget);
        }
      }
    } else {
      Map<String, SNode> available = MapSequence.fromMap(new HashMap<String, SNode>());
      for (SNode param :
          ListSequence.fromList(
              SLinkOperations.getChildren(
                  containingTemplate,
                  MetaAdapterFactory.getContainmentLink(
                      0xb401a68083254110L,
                      0x8fd384331ff25befL,
                      0xda3dc6e5137e9b1L,
                      0xda3dc6e5137ea56L,
                      "parameter")))) {
        MapSequence.fromMap(available)
            .put(
                SPropertyOperations.getString(
                    param,
                    MetaAdapterFactory.getProperty(
                        0xceab519525ea4f22L,
                        0x9b92103b95ca8c0cL,
                        0x110396eaaa4L,
                        0x110396ec041L,
                        "name")),
                SLinkOperations.getTarget(
                    param,
                    MetaAdapterFactory.getContainmentLink(
                        0xb401a68083254110L,
                        0x8fd384331ff25befL,
                        0x190d31fe6a0962e6L,
                        0x190d31fe6a096acfL,
                        "type")));
      }
      for (SNode p :
          ListSequence.fromList(
              SLinkOperations.getChildren(
                  includedTemplate,
                  MetaAdapterFactory.getContainmentLink(
                      0xb401a68083254110L,
                      0x8fd384331ff25befL,
                      0xda3dc6e5137e9b1L,
                      0xda3dc6e5137ea56L,
                      "parameter")))) {
        if (!(MapSequence.fromMap(available)
            .containsKey(
                SPropertyOperations.getString(
                    p,
                    MetaAdapterFactory.getProperty(
                        0xceab519525ea4f22L,
                        0x9b92103b95ca8c0cL,
                        0x110396eaaa4L,
                        0x110396ec041L,
                        "name"))))) {
          {
            MessageTarget errorTarget = new NodeMessageTarget();
            IErrorReporter _reporter_2309309498 =
                typeCheckingContext.reportTypeError(
                    macro,
                    "no `"
                        + SPropertyOperations.getString(
                            p,
                            MetaAdapterFactory.getProperty(
                                0xceab519525ea4f22L,
                                0x9b92103b95ca8c0cL,
                                0x110396eaaa4L,
                                0x110396ec041L,
                                "name"))
                        + "' parameter",
                    "r:00000000-0000-4000-0000-011c895902e4(jetbrains.mps.lang.generator.typesystem)",
                    "7260186302264329045",
                    null,
                    errorTarget);
          }
        } else if (!(TypeChecker.getInstance()
            .getSubtypingManager()
            .isSubtype(
                MapSequence.fromMap(available)
                    .get(
                        SPropertyOperations.getString(
                            p,
                            MetaAdapterFactory.getProperty(
                                0xceab519525ea4f22L,
                                0x9b92103b95ca8c0cL,
                                0x110396eaaa4L,
                                0x110396ec041L,
                                "name"))),
                SLinkOperations.getTarget(
                    p,
                    MetaAdapterFactory.getContainmentLink(
                        0xb401a68083254110L,
                        0x8fd384331ff25befL,
                        0x190d31fe6a0962e6L,
                        0x190d31fe6a096acfL,
                        "type"))))) {
          {
            MessageTarget errorTarget = new NodeMessageTarget();
            IErrorReporter _reporter_2309309498 =
                typeCheckingContext.reportTypeError(
                    macro,
                    "bad type of `"
                        + SPropertyOperations.getString(
                            p,
                            MetaAdapterFactory.getProperty(
                                0xceab519525ea4f22L,
                                0x9b92103b95ca8c0cL,
                                0x110396eaaa4L,
                                0x110396ec041L,
                                "name"))
                        + "' parameter",
                    "r:00000000-0000-4000-0000-011c895902e4(jetbrains.mps.lang.generator.typesystem)",
                    "7260186302264329073",
                    null,
                    errorTarget);
          }
        }
      }
    }
    if ((includedTemplate != null)
        && (SLinkOperations.getTarget(
                includedTemplate,
                MetaAdapterFactory.getReferenceLink(
                    0xb401a68083254110L,
                    0x8fd384331ff25befL,
                    0xfe43cb41d0L,
                    0x1100343ad9eL,
                    "applicableConcept"))
            != null)) {
      SNode inputNodeConcept =
          BehaviorReflection.invokeVirtual(
              (Class<SNode>) ((Class) Object.class),
              macro,
              "virtual_getInputNodeTypeInsideOfMacro_1213877290799",
              new Object[] {});
      if ((inputNodeConcept != null)) {
        if (!(MetaAdapterByDeclaration.getConcept(inputNodeConcept)
            .isSubConceptOf(
                MetaAdapterByDeclaration.getConcept(
                    SLinkOperations.getTarget(
                        includedTemplate,
                        MetaAdapterFactory.getReferenceLink(
                            0xb401a68083254110L,
                            0x8fd384331ff25befL,
                            0xfe43cb41d0L,
                            0x1100343ad9eL,
                            "applicableConcept")))))) {
          String msg =
              String.format(
                  "Input node (%s) is not an instance of template's expected concept (%s)",
                  SPropertyOperations.getString(
                      inputNodeConcept,
                      MetaAdapterFactory.getProperty(
                          0xceab519525ea4f22L,
                          0x9b92103b95ca8c0cL,
                          0x110396eaaa4L,
                          0x110396ec041L,
                          "name")),
                  SPropertyOperations.getString(
                      SLinkOperations.getTarget(
                          includedTemplate,
                          MetaAdapterFactory.getReferenceLink(
                              0xb401a68083254110L,
                              0x8fd384331ff25befL,
                              0xfe43cb41d0L,
                              0x1100343ad9eL,
                              "applicableConcept")),
                      MetaAdapterFactory.getProperty(
                          0xceab519525ea4f22L,
                          0x9b92103b95ca8c0cL,
                          0x110396eaaa4L,
                          0x110396ec041L,
                          "name")));
          {
            MessageTarget errorTarget = new NodeMessageTarget();
            IErrorReporter _reporter_2309309498 =
                typeCheckingContext.reportTypeError(
                    macro,
                    msg,
                    "r:00000000-0000-4000-0000-011c895902e4(jetbrains.mps.lang.generator.typesystem)",
                    "3850501259760070529",
                    null,
                    errorTarget);
          }
        }
      }
    }
  }
 public static void migrate(SRepository repo, SNode node) {
   // todo try to remove duplication here
   SNode movePart =
       SNodeOperations.getNodeAncestor(
           node,
           MetaAdapterFactory.getConcept(
               0x9074634404fd4286L,
               0x97d5b46ae6a81709L,
               0x67236d4a5830221eL,
               "jetbrains.mps.lang.migration.structure.MoveNodeMigrationPart"),
           false,
           false);
   if (SNodeOperations.isInstanceOf(
       node,
       MetaAdapterFactory.getConcept(
           0x9074634404fd4286L,
           0x97d5b46ae6a81709L,
           0x2b3f57492c1741b6L,
           "jetbrains.mps.lang.migration.structure.MoveConcept"))) {
     SNode mc =
         SNodeOperations.cast(
             node,
             MetaAdapterFactory.getConcept(
                 0x9074634404fd4286L,
                 0x97d5b46ae6a81709L,
                 0x2b3f57492c1741b6L,
                 "jetbrains.mps.lang.migration.structure.MoveConcept"));
     SNode from =
         AbstractNodeReference__BehaviorDescriptor.tryToFindNode_id6szrkDoc2K7.invoke(
             SLinkOperations.getTarget(
                 movePart,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x67236d4a5830221eL,
                     0x67236d4a58343d15L,
                     "fromNode")),
             repo);
     SNode to =
         AbstractNodeReference__BehaviorDescriptor.tryToFindNode_id6szrkDoc2K7.invoke(
             SLinkOperations.getTarget(
                 movePart,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x67236d4a5830221eL,
                     0x67236d4a58343d17L,
                     "toNode")),
             repo);
     if ((SLinkOperations.getTarget(
                 mc,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x2b3f57492c1741b6L,
                     0x74cb131f590ad6eaL,
                     "sourceId"))
             == null)
         && (from != null)) {
       SLinkOperations.setTarget(
           mc,
           MetaAdapterFactory.getContainmentLink(
               0x9074634404fd4286L,
               0x97d5b46ae6a81709L,
               0x2b3f57492c1741b6L,
               0x74cb131f590ad6eaL,
               "sourceId"),
           SNodeFactoryOperations.createNewNode(
               SNodeFactoryOperations.asInstanceConcept(
                   MetaAdapterFactory.getConcept(
                       0x7866978ea0f04cc7L,
                       0x81bc4d213d9375e1L,
                       0x5fea1eb9fefb6fe7L,
                       "jetbrains.mps.lang.smodel.structure.ConceptId")),
               null));
       ConceptId__BehaviorDescriptor.setConcept_id5ZE7FBYYR6j.invoke(
           SLinkOperations.getTarget(
               mc,
               MetaAdapterFactory.getContainmentLink(
                   0x9074634404fd4286L,
                   0x97d5b46ae6a81709L,
                   0x2b3f57492c1741b6L,
                   0x74cb131f590ad6eaL,
                   "sourceId")),
           MetaAdapterByDeclaration.getConcept(from));
     }
     if ((SLinkOperations.getTarget(
                 mc,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x2b3f57492c1741b6L,
                     0x74cb131f590ad6edL,
                     "targetId"))
             == null)
         && (to != null)) {
       SLinkOperations.setTarget(
           mc,
           MetaAdapterFactory.getContainmentLink(
               0x9074634404fd4286L,
               0x97d5b46ae6a81709L,
               0x2b3f57492c1741b6L,
               0x74cb131f590ad6edL,
               "targetId"),
           SNodeFactoryOperations.createNewNode(
               SNodeFactoryOperations.asInstanceConcept(
                   MetaAdapterFactory.getConcept(
                       0x7866978ea0f04cc7L,
                       0x81bc4d213d9375e1L,
                       0x5fea1eb9fefb6fe7L,
                       "jetbrains.mps.lang.smodel.structure.ConceptId")),
               null));
       ConceptId__BehaviorDescriptor.setConcept_id5ZE7FBYYR6j.invoke(
           SLinkOperations.getTarget(
               mc,
               MetaAdapterFactory.getContainmentLink(
                   0x9074634404fd4286L,
                   0x97d5b46ae6a81709L,
                   0x2b3f57492c1741b6L,
                   0x74cb131f590ad6edL,
                   "targetId")),
           MetaAdapterByDeclaration.getConcept(to));
     }
     return;
   }
   if (SNodeOperations.isInstanceOf(
       node,
       MetaAdapterFactory.getConcept(
           0x9074634404fd4286L,
           0x97d5b46ae6a81709L,
           0x2b3f57492c1741baL,
           "jetbrains.mps.lang.migration.structure.MoveContainmentLink"))) {
     SNode mcl =
         SNodeOperations.cast(
             node,
             MetaAdapterFactory.getConcept(
                 0x9074634404fd4286L,
                 0x97d5b46ae6a81709L,
                 0x2b3f57492c1741baL,
                 "jetbrains.mps.lang.migration.structure.MoveContainmentLink"));
     SNode from =
         AbstractNodeReference__BehaviorDescriptor.tryToFindNode_id6szrkDoc2K7.invoke(
             SLinkOperations.getTarget(
                 movePart,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x67236d4a5830221eL,
                     0x67236d4a58343d15L,
                     "fromNode")),
             repo);
     SNode to =
         AbstractNodeReference__BehaviorDescriptor.tryToFindNode_id6szrkDoc2K7.invoke(
             SLinkOperations.getTarget(
                 movePart,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x67236d4a5830221eL,
                     0x67236d4a58343d17L,
                     "toNode")),
             repo);
     if ((SLinkOperations.getTarget(
                 mcl,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x2b3f57492c1741baL,
                     0x74cb131f592e8ab5L,
                     "sourceId"))
             == null)
         && (from != null)) {
       SLinkOperations.setTarget(
           mcl,
           MetaAdapterFactory.getContainmentLink(
               0x9074634404fd4286L,
               0x97d5b46ae6a81709L,
               0x2b3f57492c1741baL,
               0x74cb131f592e8ab5L,
               "sourceId"),
           SNodeFactoryOperations.createNewNode(
               SNodeFactoryOperations.asInstanceConcept(
                   MetaAdapterFactory.getConcept(
                       0x7866978ea0f04cc7L,
                       0x81bc4d213d9375e1L,
                       0x74cb131f5923b6e7L,
                       "jetbrains.mps.lang.smodel.structure.ContainmentLinkId")),
               null));
       ContainmentLinkId__BehaviorDescriptor.setLink_id7jb4LXp8VsD.invoke(
           SLinkOperations.getTarget(
               mcl,
               MetaAdapterFactory.getContainmentLink(
                   0x9074634404fd4286L,
                   0x97d5b46ae6a81709L,
                   0x2b3f57492c1741baL,
                   0x74cb131f592e8ab5L,
                   "sourceId")),
           MetaAdapterByDeclaration.getContainmentLink(from));
     }
     if ((SLinkOperations.getTarget(
                 mcl,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x2b3f57492c1741baL,
                     0x74cb131f592e8ab6L,
                     "targetId"))
             == null)
         && (to != null)) {
       SLinkOperations.setTarget(
           mcl,
           MetaAdapterFactory.getContainmentLink(
               0x9074634404fd4286L,
               0x97d5b46ae6a81709L,
               0x2b3f57492c1741baL,
               0x74cb131f592e8ab6L,
               "targetId"),
           SNodeFactoryOperations.createNewNode(
               SNodeFactoryOperations.asInstanceConcept(
                   MetaAdapterFactory.getConcept(
                       0x7866978ea0f04cc7L,
                       0x81bc4d213d9375e1L,
                       0x74cb131f5923b6e7L,
                       "jetbrains.mps.lang.smodel.structure.ContainmentLinkId")),
               null));
       ContainmentLinkId__BehaviorDescriptor.setLink_id7jb4LXp8VsD.invoke(
           SLinkOperations.getTarget(
               mcl,
               MetaAdapterFactory.getContainmentLink(
                   0x9074634404fd4286L,
                   0x97d5b46ae6a81709L,
                   0x2b3f57492c1741baL,
                   0x74cb131f592e8ab6L,
                   "targetId")),
           MetaAdapterByDeclaration.getContainmentLink(to));
     }
     return;
   }
   if (SNodeOperations.isInstanceOf(
       node,
       MetaAdapterFactory.getConcept(
           0x9074634404fd4286L,
           0x97d5b46ae6a81709L,
           0x2b3f57492c1741b7L,
           "jetbrains.mps.lang.migration.structure.MoveReferenceLink"))) {
     SNode mrl =
         SNodeOperations.cast(
             node,
             MetaAdapterFactory.getConcept(
                 0x9074634404fd4286L,
                 0x97d5b46ae6a81709L,
                 0x2b3f57492c1741b7L,
                 "jetbrains.mps.lang.migration.structure.MoveReferenceLink"));
     SNode from =
         AbstractNodeReference__BehaviorDescriptor.tryToFindNode_id6szrkDoc2K7.invoke(
             SLinkOperations.getTarget(
                 movePart,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x67236d4a5830221eL,
                     0x67236d4a58343d15L,
                     "fromNode")),
             repo);
     SNode to =
         AbstractNodeReference__BehaviorDescriptor.tryToFindNode_id6szrkDoc2K7.invoke(
             SLinkOperations.getTarget(
                 movePart,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x67236d4a5830221eL,
                     0x67236d4a58343d17L,
                     "toNode")),
             repo);
     if ((SLinkOperations.getTarget(
                 mrl,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x2b3f57492c1741b7L,
                     0x74cb131f592e8abdL,
                     "sourceId"))
             == null)
         && (from != null)) {
       SLinkOperations.setTarget(
           mrl,
           MetaAdapterFactory.getContainmentLink(
               0x9074634404fd4286L,
               0x97d5b46ae6a81709L,
               0x2b3f57492c1741b7L,
               0x74cb131f592e8abdL,
               "sourceId"),
           SNodeFactoryOperations.createNewNode(
               SNodeFactoryOperations.asInstanceConcept(
                   MetaAdapterFactory.getConcept(
                       0x7866978ea0f04cc7L,
                       0x81bc4d213d9375e1L,
                       0x74cb131f5923b6ecL,
                       "jetbrains.mps.lang.smodel.structure.ReferenceLinkId")),
               null));
       ReferenceLinkId__BehaviorDescriptor.setReference_id7jb4LXp9a6q.invoke(
           SLinkOperations.getTarget(
               mrl,
               MetaAdapterFactory.getContainmentLink(
                   0x9074634404fd4286L,
                   0x97d5b46ae6a81709L,
                   0x2b3f57492c1741b7L,
                   0x74cb131f592e8abdL,
                   "sourceId")),
           MetaAdapterByDeclaration.getReferenceLink(from));
     }
     if ((SLinkOperations.getTarget(
                 mrl,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x2b3f57492c1741b7L,
                     0x74cb131f592e8abeL,
                     "targetId"))
             == null)
         && (to != null)) {
       SLinkOperations.setTarget(
           mrl,
           MetaAdapterFactory.getContainmentLink(
               0x9074634404fd4286L,
               0x97d5b46ae6a81709L,
               0x2b3f57492c1741b7L,
               0x74cb131f592e8abeL,
               "targetId"),
           SNodeFactoryOperations.createNewNode(
               SNodeFactoryOperations.asInstanceConcept(
                   MetaAdapterFactory.getConcept(
                       0x7866978ea0f04cc7L,
                       0x81bc4d213d9375e1L,
                       0x74cb131f5923b6ecL,
                       "jetbrains.mps.lang.smodel.structure.ReferenceLinkId")),
               null));
       ReferenceLinkId__BehaviorDescriptor.setReference_id7jb4LXp9a6q.invoke(
           SLinkOperations.getTarget(
               mrl,
               MetaAdapterFactory.getContainmentLink(
                   0x9074634404fd4286L,
                   0x97d5b46ae6a81709L,
                   0x2b3f57492c1741b7L,
                   0x74cb131f592e8abeL,
                   "targetId")),
           MetaAdapterByDeclaration.getReferenceLink(to));
     }
     return;
   }
   if (SNodeOperations.isInstanceOf(
       node,
       MetaAdapterFactory.getConcept(
           0x9074634404fd4286L,
           0x97d5b46ae6a81709L,
           0x2b3f57492c1741b9L,
           "jetbrains.mps.lang.migration.structure.MoveProperty"))) {
     SNode mp =
         SNodeOperations.cast(
             node,
             MetaAdapterFactory.getConcept(
                 0x9074634404fd4286L,
                 0x97d5b46ae6a81709L,
                 0x2b3f57492c1741b9L,
                 "jetbrains.mps.lang.migration.structure.MoveProperty"));
     SNode from =
         AbstractNodeReference__BehaviorDescriptor.tryToFindNode_id6szrkDoc2K7.invoke(
             SLinkOperations.getTarget(
                 movePart,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x67236d4a5830221eL,
                     0x67236d4a58343d15L,
                     "fromNode")),
             repo);
     SNode to =
         AbstractNodeReference__BehaviorDescriptor.tryToFindNode_id6szrkDoc2K7.invoke(
             SLinkOperations.getTarget(
                 movePart,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x67236d4a5830221eL,
                     0x67236d4a58343d17L,
                     "toNode")),
             repo);
     if ((SLinkOperations.getTarget(
                 mp,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x2b3f57492c1741b9L,
                     0x74cb131f592e8ab9L,
                     "sourceId"))
             == null)
         && (from != null)) {
       SLinkOperations.setTarget(
           mp,
           MetaAdapterFactory.getContainmentLink(
               0x9074634404fd4286L,
               0x97d5b46ae6a81709L,
               0x2b3f57492c1741b9L,
               0x74cb131f592e8ab9L,
               "sourceId"),
           SNodeFactoryOperations.createNewNode(
               SNodeFactoryOperations.asInstanceConcept(
                   MetaAdapterFactory.getConcept(
                       0x7866978ea0f04cc7L,
                       0x81bc4d213d9375e1L,
                       0x5fea1eb9fefc235cL,
                       "jetbrains.mps.lang.smodel.structure.PropertyId")),
               null));
       PropertyId__BehaviorDescriptor.setProperty_id5ZE7FBYZ2jW.invoke(
           SLinkOperations.getTarget(
               mp,
               MetaAdapterFactory.getContainmentLink(
                   0x9074634404fd4286L,
                   0x97d5b46ae6a81709L,
                   0x2b3f57492c1741b9L,
                   0x74cb131f592e8ab9L,
                   "sourceId")),
           MetaAdapterByDeclaration.getProperty(from));
     }
     if ((SLinkOperations.getTarget(
                 mp,
                 MetaAdapterFactory.getContainmentLink(
                     0x9074634404fd4286L,
                     0x97d5b46ae6a81709L,
                     0x2b3f57492c1741b9L,
                     0x74cb131f592e8abaL,
                     "targetId"))
             == null)
         && (to != null)) {
       SLinkOperations.setTarget(
           mp,
           MetaAdapterFactory.getContainmentLink(
               0x9074634404fd4286L,
               0x97d5b46ae6a81709L,
               0x2b3f57492c1741b9L,
               0x74cb131f592e8abaL,
               "targetId"),
           SNodeFactoryOperations.createNewNode(
               SNodeFactoryOperations.asInstanceConcept(
                   MetaAdapterFactory.getConcept(
                       0x7866978ea0f04cc7L,
                       0x81bc4d213d9375e1L,
                       0x5fea1eb9fefc235cL,
                       "jetbrains.mps.lang.smodel.structure.PropertyId")),
               null));
       PropertyId__BehaviorDescriptor.setProperty_id5ZE7FBYZ2jW.invoke(
           SLinkOperations.getTarget(
               mp,
               MetaAdapterFactory.getContainmentLink(
                   0x9074634404fd4286L,
                   0x97d5b46ae6a81709L,
                   0x2b3f57492c1741b9L,
                   0x74cb131f592e8abaL,
                   "targetId")),
           MetaAdapterByDeclaration.getProperty(to));
     }
     return;
   }
   throw new IllegalArgumentException(
       "Unknown concept:" + SNodeOperations.getConcept(node).getName());
 }
 public static boolean call_hasSameSignature_1213877350435(SNode __thisNode__, SNode checked) {
   if (neq_tq0gdw_a0a0g(
       SPropertyOperations.getString(
           __thisNode__,
           MetaAdapterFactory.getProperty(
               0xceab519525ea4f22L, 0x9b92103b95ca8c0cL, 0x110396eaaa4L, 0x110396ec041L, "name")),
       SPropertyOperations.getString(
           checked,
           MetaAdapterFactory.getProperty(
               0xceab519525ea4f22L,
               0x9b92103b95ca8c0cL,
               0x110396eaaa4L,
               0x110396ec041L,
               "name")))) {
     return false;
   }
   if (ListSequence.fromList(
               SLinkOperations.getChildren(
                   __thisNode__,
                   MetaAdapterFactory.getContainmentLink(
                       0xf3061a5392264cc5L,
                       0xa443f952ceaf5816L,
                       0xf8cc56b1fcL,
                       0xf8cc56b1feL,
                       "parameter")))
           .count()
       != ListSequence.fromList(
               SLinkOperations.getChildren(
                   checked,
                   MetaAdapterFactory.getContainmentLink(
                       0xf3061a5392264cc5L,
                       0xa443f952ceaf5816L,
                       0xf8cc56b1fcL,
                       0xf8cc56b1feL,
                       "parameter")))
           .count()) {
     return false;
   }
   if (SNodeOperations.isInstanceOf(
       checked,
       MetaAdapterFactory.getConcept(
           0xf3061a5392264cc5L,
           0xa443f952ceaf5816L,
           0xf8cc56b21dL,
           "jetbrains.mps.baseLanguage.structure.InstanceMethodDeclaration"))) {
     SNode patternMethod =
         BaseMethodDeclaration_BehaviorDescriptor.getMethodToImplement_id3RE744JWbF.invoke(
             __thisNode__,
             SNodeOperations.getNodeAncestor(
                 checked,
                 MetaAdapterFactory.getConcept(
                     0xf3061a5392264cc5L,
                     0xa443f952ceaf5816L,
                     0x101d9d3ca30L,
                     "jetbrains.mps.baseLanguage.structure.Classifier"),
                 false,
                 false));
     return BaseMethodDeclaration_BehaviorDescriptor.hasSameParameters_idJuSt8W4$Q2.invoke(
         patternMethod, checked);
   } else {
     return BaseMethodDeclaration_BehaviorDescriptor.hasSameParameters_idJuSt8W4$Q2.invoke(
         __thisNode__, checked);
   }
 }