private static SNode _quotation_createNode_4qk8lm_a0d0b() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "r:d98d04fb-4a60-4106-81cf-6cb40b67de4d(jetbrains.mps.ide.findusages.model)"),
           facade.createNodeId("847291649004065516")));
   return quotedNode_1;
 }
 public static boolean call_hasAnnotation_5499146221535822693(
     SNode __thisNode__, SNode annotation) {
   for (SNode annotationInstance :
       SLinkOperations.getChildren(
           __thisNode__,
           MetaAdapterFactory.getContainmentLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x114a6be947aL,
               0x114a6beb0bdL,
               "annotation"))) {
     if (SLinkOperations.getTarget(
             annotationInstance,
             MetaAdapterFactory.getReferenceLink(
                 0xf3061a5392264cc5L,
                 0xa443f952ceaf5816L,
                 0x114a6b4ccabL,
                 0x114a6b85d40L,
                 "annotation"))
         == annotation) {
       return true;
     }
   }
   return false;
 }
 public SAbstractConcept getApplicableConcept2() {
   return MetaAdapterFactory.getConcept(
       MetaAdapterFactory.getLanguage(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, "jetbrains.mps.baseLanguage"),
       0x101de48bf9eL,
       "ClassifierType");
 }
 private static SNode _quotation_createNode_9rcmzr_a0f0b(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   SNode quotedNode_3 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0x8388864671ce4f1cL,
               0x9c53c54016f6ad4fL,
               0x11d91cbbcd0L,
               "jetbrains.mps.baseLanguage.collections.structure.SetType"),
           null,
           null,
           false);
   quotedNode_3 = (SNode) parameter_1;
   if (quotedNode_3 != null) {
     quotedNode_2.addChild(
         MetaAdapterFactory.getContainmentLink(
             0x8388864671ce4f1cL,
             0x9c53c54016f6ad4fL,
             0x11d91cbbcd0L,
             0x11d91cc51e3L,
             "elementType"),
         HUtil.copyIfNecessary(quotedNode_3));
   }
   return quotedNode_2;
 }
Пример #5
0
 @Override
 public void execute(@NotNull String pattern) {
   ListSequence.fromList(
           SLinkOperations.getChildren(
               _context.getNode(),
               MetaAdapterFactory.getContainmentLink(
                   0x698a8d22a10447a0L,
                   0xba8d10e3ec237f13L,
                   0x2670d5989d5a6275L,
                   0x2670d5989d5b4a01L,
                   "after")))
       .addElement(
           SModelOperations.createNewNode(
               _context.getModel(),
               null,
               MetaAdapterFactory.getConcept(
                   0x698a8d22a10447a0L,
                   0xba8d10e3ec237f13L,
                   0x2670d5989d5b49b8L,
                   "jetbrains.mps.build.workflow.structure.BwfSubTaskDependency")));
   SelectionUtil.selectLabelCellAnSetCaret(
       _context.getEditorContext(),
       _context.getNode(),
       SelectionManager.FIRST_ERROR_CELL
           + "|"
           + SelectionManager.FOCUS_POLICY_CELL
           + "|"
           + SelectionManager.FIRST_EDITABLE_CELL
           + "|"
           + SelectionManager.FIRST_CELL,
       -1);
 }
 @Override
 public void childRemoved(SModelChildEvent event) {
   if (SNodeOperations.isInstanceOf(
       ((SNode) event.getParent()),
       MetaAdapterFactory.getConcept(
           0xf3061a5392264cc5L,
           0xa443f952ceaf5816L,
           0x101d9d3ca30L,
           "jetbrains.mps.baseLanguage.structure.Classifier"))) {
     if (!(SNodeOperations.isInstanceOf(
         ((SNode) event.getChild()),
         MetaAdapterFactory.getConcept(
             0xf3061a5392264cc5L,
             0xa443f952ceaf5816L,
             0xf8cc56b1fcL,
             "jetbrains.mps.baseLanguage.structure.BaseMethodDeclaration")))) {
       return;
     }
   }
   if (SNodeOperations.isInstanceOf(
       ((SNode) event.getParent()),
       MetaAdapterFactory.getConcept(
           0xf3061a5392264cc5L,
           0xa443f952ceaf5816L,
           0xf8cc56b1fcL,
           "jetbrains.mps.baseLanguage.structure.BaseMethodDeclaration"))) {
     String role = event.getChildRole();
     if (!("parameter".equals(role))) {
       return;
     }
   }
   super.childRemoved(event);
 }
 protected EditorCell createChildCell(SNode child) {
   getCellFactory().pushCellContext();
   getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child));
   try {
     EditorCell editorCell = super.createChildCell(child);
     editorCell.setAction(
         CellActionType.DELETE,
         new CellAction_DeleteSmart(
             getNode(),
             MetaAdapterFactory.getContainmentLink(
                 0xb401a68083254110L,
                 0x8fd384331ff25befL,
                 0x1231e32ff7a958ceL,
                 0x1231e32ff7a9efcdL,
                 "createNodeQuery"),
             child));
     editorCell.setAction(
         CellActionType.BACKSPACE,
         new CellAction_DeleteSmart(
             getNode(),
             MetaAdapterFactory.getContainmentLink(
                 0xb401a68083254110L,
                 0x8fd384331ff25befL,
                 0x1231e32ff7a958ceL,
                 0x1231e32ff7a9efcdL,
                 "createNodeQuery"),
             child));
     installCellInfo(child, editorCell);
     return editorCell;
   } finally {
     getCellFactory().popCellContext();
   }
 }
Пример #8
0
 public void build(
     final IOperationContext operationContext, final DataFlowBuilderContext _context) {
   _context
       .getBuilder()
       .build(
           (SNode)
               SLinkOperations.getTarget(
                   _context.getNode(),
                   MetaAdapterFactory.getContainmentLink(
                       0xf61473f9130f42f6L,
                       0xb98d6c438812c2f6L,
                       0x74f562a3a993fd3dL,
                       0x74f562a3a993fd44L,
                       "expected")));
   _context
       .getBuilder()
       .build(
           (SNode)
               SLinkOperations.getTarget(
                   _context.getNode(),
                   MetaAdapterFactory.getContainmentLink(
                       0xf61473f9130f42f6L,
                       0xb98d6c438812c2f6L,
                       0x74f562a3a993fd3dL,
                       0x74f562a3a993fd45L,
                       "actual")));
 }
 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;
 }
 protected EditorCell createChildCell(SNode child) {
   getCellFactory().pushCellContext();
   getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child));
   try {
     EditorCell editorCell = super.createChildCell(child);
     editorCell.setAction(
         CellActionType.DELETE,
         new CellAction_DeleteSmart(
             getNode(),
             MetaAdapterFactory.getContainmentLink(
                 0x7866978ea0f04cc7L,
                 0x81bc4d213d9375e1L,
                 0x2143399c0554e687L,
                 0x3636a984eed504f9L,
                 "conceptArgument"),
             child));
     editorCell.setAction(
         CellActionType.BACKSPACE,
         new CellAction_DeleteSmart(
             getNode(),
             MetaAdapterFactory.getContainmentLink(
                 0x7866978ea0f04cc7L,
                 0x81bc4d213d9375e1L,
                 0x2143399c0554e687L,
                 0x3636a984eed504f9L,
                 "conceptArgument"),
             child));
     installCellInfo(child, editorCell);
     return editorCell;
   } finally {
     getCellFactory().popCellContext();
   }
 }
 private static SNode _quotation_createNode_mrte6h_a0a0() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "742f6602-5a2f-4313-aa6e-ae1cd4ffdc61/java:jetbrains.mps.project(MPS.Platform/)"),
           facade.createNodeId("~MPSProject")));
   return quotedNode_1;
 }
 private static SNode _quotation_createNode_fj2vg7_a0m0b(Object parameter_1, Object parameter_2) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_3 = null;
   SNode quotedNode_4 = null;
   quotedNode_3 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   SNodeAccessUtil.setReferenceTarget(
       quotedNode_3,
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       (SNode) parameter_1);
   {
     List<SNode> nodes = (List<SNode>) parameter_2;
     for (SNode child : nodes) {
       quotedNode_3.addChild(
           MetaAdapterFactory.getContainmentLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x102419671abL,
               "parameter"),
           HUtil.copyIfNecessary(child));
     }
   }
   return quotedNode_3;
 }
 private static SNode _quotation_createNode_fj2vg7_a1a0a0a7a1() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xed6d7656532c4bc2L,
               0x81d1af945aeb8280L,
               0x10de9cbf8e8L,
               "jetbrains.mps.baseLanguage.blTypes.structure.PrimitiveTypeRef"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xed6d7656532c4bc2L, 0x81d1af945aeb8280L, 0x10de9cbf8e8L, 0x10de9cbf8e7L, "descriptor"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xed6d7656532c4bc2L,
               0x81d1af945aeb8280L,
               0x10de9cbf8e8L,
               0x10de9cbf8e7L,
               "descriptor"),
           quotedNode_1,
           facade.createModelReference(
               "r:00000000-0000-4000-0000-011c895902de(jetbrains.mps.baseLanguage.blTypes.primitiveDescriptors)"),
           facade.createNodeId("1196683941620")));
   return quotedNode_1;
 }
 /*package*/ static void setupCaretAndSelection_id7TYU6fNl1yz(
     @NotNull SNode __thisNode__, EditorCell cellWithId) {
   if (cellWithId instanceof EditorCell_Label) {
     EditorCell_Label label = (EditorCell_Label) cellWithId;
     label.setCaretPosition(
         ((int)
             AnonymousCellAnnotation__BehaviorDescriptor.getCaretPosition_id5rZKa_fUlry.invoke(
                 __thisNode__, label)));
     label.setSelectionStart(
         SPropertyOperations.getInteger(
             __thisNode__,
             MetaAdapterFactory.getProperty(
                 0x8585453e6bfb4d80L,
                 0x98deb16074f1d86cL,
                 0x11e31babe12L,
                 0x56ffc0a94fe5fc33L,
                 "selectionStart")));
     label.setSelectionEnd(
         SPropertyOperations.getInteger(
             __thisNode__,
             MetaAdapterFactory.getProperty(
                 0x8585453e6bfb4d80L,
                 0x98deb16074f1d86cL,
                 0x11e31babe12L,
                 0x56ffc0a94fe5fc35L,
                 "selectionEnd")));
   }
 }
 @Override
 @NotNull
 protected List<MenuPart<TransformationMenuItem, TransformationMenuContext>> getParts(
     TransformationMenuContext _context) {
   List<MenuPart<TransformationMenuItem, TransformationMenuContext>> result =
       new ArrayList<MenuPart<TransformationMenuItem, TransformationMenuContext>>();
   if (ListSequence.fromListAndArray(
           new ArrayList<String>(),
           MenuLocations.LEFT_SIDE_TRANSFORM,
           MenuLocations.RIGHT_SIDE_TRANSFORM)
       .contains(_context.getMenuLocation())) {
     result.add(
         new DefaultConceptMenusTransformationMenuPart(
             SModelUtil.getDirectSuperConcepts(
                 MetaAdapterFactory.getConcept(
                     0xf3347d8a0e794f35L,
                     0x8ac91574f25c986fL,
                     0xbe3a0d5ba1a2c12L,
                     "jetbrains.mps.execution.commands.structure.ProcessType"))));
   }
   if (ListSequence.fromListAndArray(new ArrayList<String>(), MenuLocations.RIGHT_SIDE_TRANSFORM)
       .contains(_context.getMenuLocation())) {
     result.add(
         new ConstraintsFilteringTransformationMenuPartDecorator(
             new ProcessType_TransformationMenu.TransformationMenuPart_Action_fvqin_a1(),
             MetaAdapterFactory.getConcept(
                 0xf3347d8a0e794f35L,
                 0x8ac91574f25c986fL,
                 0x87f99370d7e1ea3L,
                 "jetbrains.mps.execution.commands.structure.CommandProcessType")));
   }
   return result;
 }
 private static SNode _quotation_createNode_bwi1fo_a0a3() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "6354ebe7-c22a-4a0f-ac54-50b52ab9b065/java:java.lang(JDK/)"),
           facade.createNodeId("~Object")));
   return quotedNode_1;
 }
 private String createMethodParameterTypesString(SNode method, Map<SNode, SNode> typeByTypeVar) {
   StringBuilder result = new StringBuilder();
   for (SNode parm :
       SLinkOperations.getChildren(
           method,
           MetaAdapterFactory.getContainmentLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0xf8cc56b1fcL,
               0xf8cc56b1feL,
               "parameter"))) {
     SNode type =
         SLinkOperations.getTarget(
             parm,
             MetaAdapterFactory.getContainmentLink(
                 0xf3061a5392264cc5L,
                 0xa443f952ceaf5816L,
                 0x450368d90ce15bc3L,
                 0x4ed4d318133c80ceL,
                 "type"));
     type = GenericTypesUtil.getTypeWithResolvedTypeVars(type, typeByTypeVar);
     if (result.length() > 0) {
       result.append(',');
     }
     if (type != null) {
       result.append(
           ((String)
               BHReflection.invoke(
                   type, SMethodTrimmedId.create("getErasureSignature", null, "hEwIzNx"))));
     } else {
       result.append("");
     }
   }
   return result.toString();
 }
 private boolean nodeCondition_d5p1uc_a2a() {
   return (SLinkOperations.getTarget(
               myNode,
               MetaAdapterFactory.getReferenceLink(
                   0xf3061a5392264cc5L,
                   0xa443f952ceaf5816L,
                   0x114a6b4ccabL,
                   0x114a6b85d40L,
                   "annotation"))
           != null)
       && ListSequence.fromList(
               SLinkOperations.getChildren(
                   SLinkOperations.getTarget(
                       myNode,
                       MetaAdapterFactory.getReferenceLink(
                           0xf3061a5392264cc5L,
                           0xa443f952ceaf5816L,
                           0x114a6b4ccabL,
                           0x114a6b85d40L,
                           "annotation")),
                   MetaAdapterFactory.getContainmentLink(
                       0xf3061a5392264cc5L,
                       0xa443f952ceaf5816L,
                       0x101d9d3ca30L,
                       0x101f2cc410bL,
                       "method")))
           .isNotEmpty();
 }
 protected EditorCell createChildCell(SNode child) {
   getCellFactory().pushCellContext();
   getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child));
   try {
     EditorCell editorCell = super.createChildCell(child);
     editorCell.setAction(
         CellActionType.DELETE,
         new CellAction_DeleteSmart(
             getNode(),
             MetaAdapterFactory.getContainmentLink(
                 0x698a8d22a10447a0L,
                 0xba8d10e3ec237f13L,
                 0x5c3f3e2c1cede077L,
                 0x6e014d63c0847621L,
                 "classpath"),
             child));
     editorCell.setAction(
         CellActionType.BACKSPACE,
         new CellAction_DeleteSmart(
             getNode(),
             MetaAdapterFactory.getContainmentLink(
                 0x698a8d22a10447a0L,
                 0xba8d10e3ec237f13L,
                 0x5c3f3e2c1cede077L,
                 0x6e014d63c0847621L,
                 "classpath"),
             child));
     installCellInfo(child, editorCell);
     return editorCell;
   } finally {
     getCellFactory().popCellContext();
   }
 }
Пример #20
0
 private static SNode _quotation_createNode_rsqk7y_a0a0(Object parameter_1) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_2 = null;
   SNode quotedNode_3 = null;
   quotedNode_2 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0x8388864671ce4f1cL,
               0x9c53c54016f6ad4fL,
               0x2e9a0b9a890137e9L,
               "jetbrains.mps.baseLanguage.collections.structure.LinkedListType"),
           null,
           null,
           false);
   quotedNode_3 = (SNode) parameter_1;
   if (quotedNode_3 != null) {
     quotedNode_2.addChild(
         MetaAdapterFactory.getContainmentLink(
             0x8388864671ce4f1cL,
             0x9c53c54016f6ad4fL,
             0x10c25fb076aL,
             0x10c25fe95c5L,
             "elementType"),
         HUtil.copyIfNecessary(quotedNode_3));
   }
   return quotedNode_2;
 }
 private static SNode _quotation_createNode_9rcmzr_a0e0b(Object parameter_1, Object parameter_2) {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_3 = null;
   SNode quotedNode_4 = null;
   SNode quotedNode_5 = null;
   quotedNode_3 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0x8388864671ce4f1cL,
               0x9c53c54016f6ad4fL,
               0x120cf0ddd15L,
               "jetbrains.mps.baseLanguage.collections.structure.MappingType"),
           null,
           null,
           false);
   quotedNode_4 = (SNode) parameter_1;
   if (quotedNode_4 != null) {
     quotedNode_3.addChild(
         MetaAdapterFactory.getContainmentLink(
             0x8388864671ce4f1cL, 0x9c53c54016f6ad4fL, 0x120cf0ddd15L, 0x120cf0e3925L, "keyType"),
         HUtil.copyIfNecessary(quotedNode_4));
   }
   quotedNode_5 = (SNode) parameter_2;
   if (quotedNode_5 != null) {
     quotedNode_3.addChild(
         MetaAdapterFactory.getContainmentLink(
             0x8388864671ce4f1cL,
             0x9c53c54016f6ad4fL,
             0x120cf0ddd15L,
             0x120cf0e4f44L,
             "valueType"),
         HUtil.copyIfNecessary(quotedNode_5));
   }
   return quotedNode_3;
 }
 protected EditorCell createChildCell(SNode child) {
   getCellFactory().pushCellContext();
   getCellFactory().setNodeLocation(new SNodeLocation.FromNode(child));
   try {
     EditorCell editorCell = super.createChildCell(child);
     editorCell.setAction(
         CellActionType.DELETE,
         new CellAction_DeleteSmart(
             getNode(),
             MetaAdapterFactory.getContainmentLink(
                 0x86ef829012bb4ca7L,
                 0x947f093788f263a9L,
                 0x5869770da61dfe28L,
                 0x19bfb4173fb5241eL,
                 "moduleRef"),
             child));
     editorCell.setAction(
         CellActionType.BACKSPACE,
         new CellAction_DeleteSmart(
             getNode(),
             MetaAdapterFactory.getContainmentLink(
                 0x86ef829012bb4ca7L,
                 0x947f093788f263a9L,
                 0x5869770da61dfe28L,
                 0x19bfb4173fb5241eL,
                 "moduleRef"),
             child));
     installCellInfo(child, editorCell);
     return editorCell;
   } finally {
     getCellFactory().popCellContext();
   }
 }
 @Override
 protected void doFind(
     SNode node, SearchScope scope, List<SNode> _results, ProgressMonitor monitor) {
   monitor.start(getDescription(), 1);
   try {
     for (SNode nodeUsage :
         FindUtils.executeFinder(
             "jetbrains.mps.lang.structure.findUsages.NodeUsages_Finder",
             node,
             scope,
             monitor.subTask(1))) {
       if (SNodeOperations.hasRole(
           nodeUsage,
           MetaAdapterFactory.getContainmentLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0xf8c108ca66L,
               0x10f6353296dL,
               "superclass"))) {
         ListSequence.fromList(_results).addElement(SNodeOperations.getParent(nodeUsage));
       } else if (SNodeOperations.isInstanceOf(
           nodeUsage,
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x1107e0cb103L,
               "jetbrains.mps.baseLanguage.structure.AnonymousClass"))) {
         ListSequence.fromList(_results).addElement(nodeUsage);
       }
     }
   } finally {
     monitor.done();
   }
 }
 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);
 }
 public static String call_getErasureSignature_2830572026628006618(SNode __thisNode__) {
   StringBuilder sb = new StringBuilder();
   List<SNode> parameters =
       SLinkOperations.getChildren(
           __thisNode__,
           MetaAdapterFactory.getContainmentLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0xf8cc56b1fcL,
               0xf8cc56b1feL,
               "parameter"));
   for (int i = 0; i < ListSequence.fromList(parameters).count(); i++) {
     SNode param = ListSequence.fromList(parameters).getElement(i);
     sb.append(
         Type_BehaviorDescriptor.getErasureSignature_idhEwIzNx.invoke(
             SLinkOperations.getTarget(
                 param,
                 MetaAdapterFactory.getContainmentLink(
                     0xf3061a5392264cc5L,
                     0xa443f952ceaf5816L,
                     0x450368d90ce15bc3L,
                     0x4ed4d318133c80ceL,
                     "type"))));
     if (i < ListSequence.fromList(parameters).count() - 1) {
       sb.append(",");
     }
   }
   return sb.toString();
 }
Пример #26
0
 private static SNode _quotation_createNode_t7bv23_a0a0() {
   PersistenceFacade facade = PersistenceFacade.getInstance();
   SNode quotedNode_1 = null;
   quotedNode_1 =
       SModelUtil_new.instantiateConceptDeclaration(
           MetaAdapterFactory.getConcept(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               "jetbrains.mps.baseLanguage.structure.ClassifierType"),
           null,
           null,
           false);
   quotedNode_1.setReference(
       MetaAdapterFactory.getReferenceLink(
           0xf3061a5392264cc5L, 0xa443f952ceaf5816L, 0x101de48bf9eL, 0x101de490babL, "classifier"),
       SReference.create(
           MetaAdapterFactory.getReferenceLink(
               0xf3061a5392264cc5L,
               0xa443f952ceaf5816L,
               0x101de48bf9eL,
               0x101de490babL,
               "classifier"),
           quotedNode_1,
           facade.createModelReference(
               "8865b7a8-5271-43d3-884c-6fd1d9cfdd34/f:java_stub#8865b7a8-5271-43d3-884c-6fd1d9cfdd34#org.jetbrains.mps.openapi.module(MPS.OpenAPI/org.jetbrains.mps.openapi.module@java_stub)"),
           facade.createNodeId("~SModule")));
   return quotedNode_1;
 }
 /*package*/ static Money getCurrentPrice_id3u6SZi0yq4L(@NotNull SNode __thisNode__) {
   if ((SLinkOperations.getTarget(
           __thisNode__,
           MetaAdapterFactory.getContainmentLink(
               0x662a9f2b58024d16L,
               0x955872c65c7a681eL,
               0x3786e3f4808999c3L,
               0x3786e3f480b0926aL,
               "symbol"))
       == null)) {
     return new Money(BigDecimal.ZERO, "USD");
   }
   Money currentPrice =
       StockPriceDownloader.getInstance()
           .getCurrentPrice(
               SPropertyOperations.getString(
                   SLinkOperations.getTarget(
                       __thisNode__,
                       MetaAdapterFactory.getContainmentLink(
                           0x662a9f2b58024d16L,
                           0x955872c65c7a681eL,
                           0x3786e3f4808999c3L,
                           0x3786e3f480b0926aL,
                           "symbol")),
                   MetaAdapterFactory.getProperty(
                       0x662a9f2b58024d16L,
                       0x955872c65c7a681eL,
                       0x3786e3f480a9b18aL,
                       0x3786e3f480afac5bL,
                       "symbol")));
   if (currentPrice == null) {
     return new Money(BigDecimal.ZERO, "USD");
   }
   return currentPrice;
 }
 public void execute(SNode node) {
   if ((boolean)
       Expression__BehaviorDescriptor.singleValue_id1o8Ht9sES3u.invoke(
           SNodeOperations.asSConcept(
               SNodeOperations.getConceptDeclaration(
                   SLinkOperations.getTarget(
                       ((SNode)
                           RemoveUnnecessaryParentheses_QuickFix.this
                               .getField("bottomLineParens")[0]),
                       MetaAdapterFactory.getContainmentLink(
                           0xf3061a5392264cc5L,
                           0xa443f952ceaf5816L,
                           0xfb4ed32b7fL,
                           0xfb4ed32b80L,
                           "expression")))))) {
     SNodeOperations.replaceWithAnother(
         node,
         SLinkOperations.getTarget(
             ((SNode) RemoveUnnecessaryParentheses_QuickFix.this.getField("bottomLineParens")[0]),
             MetaAdapterFactory.getContainmentLink(
                 0xf3061a5392264cc5L,
                 0xa443f952ceaf5816L,
                 0xfb4ed32b7fL,
                 0xfb4ed32b80L,
                 "expression")));
   }
   SNodeOperations.replaceWithAnother(
       node, ((SNode) RemoveUnnecessaryParentheses_QuickFix.this.getField("bottomLineParens")[0]));
 }
 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;
 }
 @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);
 }