private static void attachReference_id2wBFdLy8qmn(@NotNull SNode __thisNode__, SNode reference) {
   assert IReferenceAttachable_BehaviorDescriptor.canAttachReference_id2wBFdLy7HtS.invoke(
       __thisNode__, reference);
   SLinkOperations.setTarget(
       __thisNode__,
       MetaAdapterFactory.getContainmentLink(
           0x8585453e6bfb4d80L,
           0x98deb16074f1d86cL,
           0x73a7cdcfbbbf8aadL,
           0x73a7cdcfbbbf8c41L,
           "warningRef"),
       SConceptOperations.createNewNode(
           SNodeOperations.asInstanceConcept(
               MetaAdapterFactory.getConcept(
                   0x8585453e6bfb4d80L,
                   0x98deb16074f1d86cL,
                   0x6abc06f5f4af0d67L,
                   "jetbrains.mps.lang.test.structure.UnknownRuleReference"))));
   SLinkOperations.setTarget(
       SLinkOperations.getTarget(
           __thisNode__,
           MetaAdapterFactory.getContainmentLink(
               0x8585453e6bfb4d80L,
               0x98deb16074f1d86cL,
               0x73a7cdcfbbbf8aadL,
               0x73a7cdcfbbbf8c41L,
               "warningRef")),
       MetaAdapterFactory.getReferenceLink(
           0x8585453e6bfb4d80L,
           0x98deb16074f1d86cL,
           0x6abc06f5f4afab9dL,
           0x73a7cdcfba51f755L,
           "declaration"),
       reference);
 }
コード例 #2
0
 @Override
 public SNode getMethodType() {
   return SConceptOperations.createNewNode(
       SNodeOperations.asInstanceConcept(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0xf940d6513eL,
               "jetbrains.mps.baseLanguage.structure.BooleanType")));
 }
コード例 #3
0
 @Override
 protected void modifyPartToExtract() {
   SNode ret =
       SConceptOperations.createNewNode(
           SNodeOperations.asInstanceConcept(
               MetaAdapterFactory.getConcept(
                   0xf3061a5392264cc5L,
                   0xa443f952ceaf5816L,
                   0xf8cc67c7feL,
                   "jetbrains.mps.baseLanguage.structure.ReturnStatement")));
   SNode constant =
       SConceptOperations.createNewNode(
           SNodeOperations.asInstanceConcept(
               MetaAdapterFactory.getConcept(
                   0xf3061a5392264cc5L,
                   0xa443f952ceaf5816L,
                   0xf8cc56b201L,
                   "jetbrains.mps.baseLanguage.structure.BooleanConstant")));
   SPropertyOperations.set(
       constant,
       MetaAdapterFactory.getProperty(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"),
       "" + (false));
   SLinkOperations.setTarget(
       ret,
       MetaAdapterFactory.getContainmentLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc67c7feL, 0xf8cc6bf96cL, "expression"),
       constant);
   ListSequence.fromList(this.myStatements).addElement(SNodeOperations.copyNode(ret));
   SPropertyOperations.set(
       constant,
       MetaAdapterFactory.getProperty(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0xf8cc56b201L, 0xf8cc56b202L, "value"),
       "" + (true));
   for (SNode exitPoint : ListSequence.fromList(this.myAnalyzer.getIntenalExitPoints())) {
     SNodeOperations.replaceWithAnother(exitPoint, SNodeOperations.copyNode(ret));
   }
 }
コード例 #4
0
ファイル: BaseConsoleTab.java プロジェクト: ozlembb/MPS
 protected SNode getLastReponse() {
   SNode last =
       SNodeOperations.as(
           ListSequence.fromList(
                   SLinkOperations.getChildren(
                       SLinkOperations.getTarget(
                           myRoot,
                           MetaAdapterFactory.getContainmentLink(
                               0xde1ad86d6e504a02L,
                               0xb306d4d17f64c375L,
                               0x15fb34051f725a2cL,
                               0x15fb34051f725bafL,
                               "history")),
                       MetaAdapterFactory.getContainmentLink(
                           0xde1ad86d6e504a02L,
                           0xb306d4d17f64c375L,
                           0xa835f28c1aa02beL,
                           0x63da33792b5df49aL,
                           "item")))
               .last(),
           MetaAdapterFactory.getConcept(
               0xde1ad86d6e504a02L,
               0xb306d4d17f64c375L,
               0x4e3b035171a5ba02L,
               "jetbrains.mps.console.base.structure.Response"));
   if (last != null) {
     return last;
   }
   return SLinkOperations.addNewChild(
       SLinkOperations.getTarget(
           myRoot,
           MetaAdapterFactory.getContainmentLink(
               0xde1ad86d6e504a02L,
               0xb306d4d17f64c375L,
               0x15fb34051f725a2cL,
               0x15fb34051f725bafL,
               "history")),
       MetaAdapterFactory.getContainmentLink(
           0xde1ad86d6e504a02L,
           0xb306d4d17f64c375L,
           0xa835f28c1aa02beL,
           0x63da33792b5df49aL,
           "item"),
       SNodeOperations.asInstanceConcept(
           MetaAdapterFactory.getConcept(
               0xde1ad86d6e504a02L,
               0xb306d4d17f64c375L,
               0x4e3b035171a5ba02L,
               "jetbrains.mps.console.base.structure.Response")));
 }
コード例 #5
0
 public static void init(SNode thisNode) {
   SLinkOperations.setNewChild(
       thisNode,
       MetaAdapterFactory.getContainmentLink(
           0xf3061a5392264cc5L,
           0xa443f952ceaf5816L,
           0x450368d90ce15bc3L,
           0x4ed4d318133c80ceL,
           "type"),
       SNodeOperations.asInstanceConcept(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x431d52a5d09a4ea9L,
               "jetbrains.mps.baseLanguage.structure.UndefinedType")));
 }
コード例 #6
0
 private static void ___init___(@NotNull SNode __thisNode__) {
   SLinkOperations.addNewChild(
       __thisNode__,
       MetaAdapterFactory.getContainmentLink(
           0xf280165065d5424eL,
           0xbb1b463a8781b786L,
           0x5bc4aa08e154b399L,
           0x5bc4aa08e154b39bL,
           "line"),
       SNodeOperations.asInstanceConcept(
           MetaAdapterFactory.getConcept(
               0xf280165065d5424eL,
               0xbb1b463a8781b786L,
               0x757ba20a4c87f96cL,
               "jetbrains.mps.baseLanguage.javadoc.structure.CommentLine")));
 }
コード例 #7
0
 public void execute_internal(EditorContext editorContext, SNode node) {
   SLinkOperations.setTarget(
       node,
       MetaAdapterFactory.getContainmentLink(
           0x18bc659203a64e29L,
           0xa83a7ff23bde13baL,
           0xf9eaff2517L,
           0x3ae0865e9aa67219L,
           "removeHints"),
       SConceptOperations.createNewNode(
           SNodeOperations.asInstanceConcept(
               MetaAdapterFactory.getConcept(
                   0x18bc659203a64e29L,
                   0xa83a7ff23bde13baL,
                   0x3ae0865e9a712712L,
                   "jetbrains.mps.lang.editor.structure.ExplicitHintsSpecification"))));
 }
コード例 #8
0
 private static SNode createType_idhEwJimy(@NotNull SNode __thisNode__) {
   SNode type =
       SConceptOperations.createNewNode(
           SNodeOperations.asInstanceConcept(
               MetaAdapterFactory.getConcept(
                   0x28f9e4973b424291L,
                   0xaeba0a1039153ab1L,
                   0x119240f9168L,
                   "jetbrains.mps.lang.plugin.structure.GroupType")));
   SLinkOperations.setTarget(
       type,
       MetaAdapterFactory.getReferenceLink(
           0x28f9e4973b424291L,
           0xaeba0a1039153ab1L,
           0x119240f9168L,
           0x119240f916aL,
           "actionGroup"),
       __thisNode__);
   return type;
 }
コード例 #9
0
 public void handleAction_impl(
     SNode parameterObject,
     SNode node,
     SModel model,
     IOperationContext operationContext,
     EditorContext editorContext) {
   SLinkOperations.setTarget(
       node,
       MetaAdapterFactory.getContainmentLink(
           0x8585453e6bfb4d80L,
           0x98deb16074f1d86cL,
           0x11b01e7283dL,
           0x75cf259aa047ff15L,
           "errorRef"),
       SConceptOperations.createNewNode(
           SNodeOperations.asInstanceConcept(
               MetaAdapterFactory.getConcept(
                   0x8585453e6bfb4d80L,
                   0x98deb16074f1d86cL,
                   0x3ee2cbee8b19b06dL,
                   "jetbrains.mps.lang.test.structure.ReportErrorStatementReference"))));
   SLinkOperations.setTarget(
       SLinkOperations.getTarget(
           node,
           MetaAdapterFactory.getContainmentLink(
               0x8585453e6bfb4d80L,
               0x98deb16074f1d86cL,
               0x11b01e7283dL,
               0x75cf259aa047ff15L,
               "errorRef")),
       MetaAdapterFactory.getReferenceLink(
           0x8585453e6bfb4d80L,
           0x98deb16074f1d86cL,
           0x6abc06f5f4afab9dL,
           0x73a7cdcfba51f755L,
           "declaration"),
       parameterObject);
 }
コード例 #10
0
 public static boolean static_canBeAChild(
     SNode node,
     SNode parentNode,
     SNode link,
     SNode childConcept,
     final IOperationContext operationContext) {
   if (SNodeOperations.isInstanceOf(
       parentNode,
       MetaAdapterFactory.getConcept(
           0x18bc659203a64e29L,
           0xa83a7ff23bde13baL,
           0xfb35c96896L,
           "jetbrains.mps.lang.editor.structure.CellModel_Component"))) {
     SNode testInstance =
         SNodeOperations.cast(
             SConceptOperations.createNewNode(SNodeOperations.asInstanceConcept(childConcept)),
             MetaAdapterFactory.getConcept(
                 0x18bc659203a64e29L,
                 0xa83a7ff23bde13baL,
                 0x1143b191dc6L,
                 "jetbrains.mps.lang.editor.structure.StyleClassItem"));
     return BehaviorReflection.invokeVirtual(
         Boolean.TYPE,
         testInstance,
         "virtual_isApplicableTo_1214304723440",
         new Object[] {
           SLinkOperations.getTarget(
               SLinkOperations.getTarget(
                   SNodeOperations.cast(
                       parentNode,
                       MetaAdapterFactory.getConcept(
                           0x18bc659203a64e29L,
                           0xa83a7ff23bde13baL,
                           0xfb35c96896L,
                           "jetbrains.mps.lang.editor.structure.CellModel_Component")),
                   MetaAdapterFactory.getReferenceLink(
                       0x18bc659203a64e29L,
                       0xa83a7ff23bde13baL,
                       0xfb35c96896L,
                       0xfb35c96897L,
                       "editorComponent")),
               MetaAdapterFactory.getContainmentLink(
                   0x18bc659203a64e29L,
                   0xa83a7ff23bde13baL,
                   0xfba0eb7c50L,
                   0xfba0ec5415L,
                   "cellModel"))
         });
   } else if (SNodeOperations.isInstanceOf(
       parentNode,
       MetaAdapterFactory.getConcept(
           0x18bc659203a64e29L,
           0xa83a7ff23bde13baL,
           0xf9eafb9a39L,
           "jetbrains.mps.lang.editor.structure.EditorCellModel"))) {
     SNode testInstance =
         SNodeOperations.cast(
             SConceptOperations.createNewNode(SNodeOperations.asInstanceConcept(childConcept)),
             MetaAdapterFactory.getConcept(
                 0x18bc659203a64e29L,
                 0xa83a7ff23bde13baL,
                 0x1143b191dc6L,
                 "jetbrains.mps.lang.editor.structure.StyleClassItem"));
     return BehaviorReflection.invokeVirtual(
         Boolean.TYPE,
         testInstance,
         "virtual_isApplicableTo_1214304723440",
         new Object[] {
           SNodeOperations.cast(
               parentNode,
               MetaAdapterFactory.getConcept(
                   0x18bc659203a64e29L,
                   0xa83a7ff23bde13baL,
                   0xf9eafb9a39L,
                   "jetbrains.mps.lang.editor.structure.EditorCellModel"))
         });
   }
   return true;
 }
コード例 #11
0
 private static void ___init___(@NotNull SNode __thisNode__) {
   for (int i = 0;
       i
           < (int)
               Table__BehaviorDescriptor.getInitialRowCount_id1653mnvAgrI.invoke(
                   SNodeOperations.asSConcept(
                       SNodeOperations.getConceptDeclaration(__thisNode__)));
       i++) {
     SNode row =
         SConceptOperations.createNewNode(
             SNodeOperations.asInstanceConcept(
                 MetaAdapterFactory.getConcept(
                     0xdf8799e7254a406fL,
                     0xbd67f4cc27337152L,
                     0x28004d411fa3bea6L,
                     "jetbrains.mps.lang.editor.tableTests.structure.Row")));
     for (int j = 0;
         j
             < (int)
                 Table__BehaviorDescriptor.getInitialColumnCount_id1653mnvAgqE.invoke(
                     SNodeOperations.asSConcept(
                         SNodeOperations.getConceptDeclaration(__thisNode__)));
         j++) {
       SNode dataCell =
           SConceptOperations.createNewNode(
               SNodeOperations.asInstanceConcept(
                   MetaAdapterFactory.getConcept(
                       0xdf8799e7254a406fL,
                       0xbd67f4cc27337152L,
                       0x28004d411fa3bea4L,
                       "jetbrains.mps.lang.editor.tableTests.structure.DataCell")));
       SPropertyOperations.set(
           dataCell,
           MetaAdapterFactory.getProperty(
               0xdf8799e7254a406fL,
               0xbd67f4cc27337152L,
               0x28004d411fa3bea4L,
               0x28004d411fa3bea5L,
               "value"),
           "$" + i + " " + j + "$");
       ListSequence.fromList(
               SLinkOperations.getChildren(
                   row,
                   MetaAdapterFactory.getContainmentLink(
                       0xdf8799e7254a406fL,
                       0xbd67f4cc27337152L,
                       0x28004d411fa3bea6L,
                       0x28004d411fa3bea7L,
                       "cells")))
           .addElement(dataCell);
     }
     ListSequence.fromList(
             SLinkOperations.getChildren(
                 __thisNode__,
                 MetaAdapterFactory.getContainmentLink(
                     0xdf8799e7254a406fL,
                     0xbd67f4cc27337152L,
                     0x28004d411fa3bea0L,
                     0x28004d411fa3bea2L,
                     "rows")))
         .addElement(row);
   }
 }