private static SNode _quotation_createNode_qzfpnd_a0a0c0a(Object parameter_1) { SNode quotedNode_2 = null; SNode quotedNode_3 = null; SNode quotedNode_4 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.closures.structure.FunctionType", null, null, GlobalScope.getInstance(), false); quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.collections.structure.SequenceType", null, null, GlobalScope.getInstance(), false); quotedNode_4 = (SNode) parameter_1; if (quotedNode_4 != null) { quotedNode_3.addChild("elementType", HUtil.copyIfNecessary(quotedNode_4)); } quotedNode_2.addChild("resultType", quotedNode_3); return quotedNode_2; }
private static SNode _quotation_createNode_a1x6vi_a0c0a() { SNode quotedNode_1 = null; SNode quotedNode_2 = null; quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.GenericNewExpression", null, null, GlobalScope.getInstance(), false); quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.ClassCreator", null, null, GlobalScope.getInstance(), false); quotedNode_2.setReference( "baseMethodDeclaration", SReference.create( "baseMethodDeclaration", quotedNode_2, SModelReference.fromString( "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.lang(JDK/java.lang@java_stub)"), SNodeId.fromString("~IllegalArgumentException.<init>()"))); quotedNode_1.addChild("creator", quotedNode_2); return quotedNode_1; }
private static SNode _quotation_createNode_baxqxe_a0a0a2(Object parameter_1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_2 = null; SNode quotedNode_3 = null; SNode quotedNode_4 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.DotExpression", null, null, GlobalScope.getInstance(), false); quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.ThisExpression", null, null, GlobalScope.getInstance(), false); quotedNode_2.addChild("operand", quotedNode_3); quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.FieldReferenceOperation", null, null, GlobalScope.getInstance(), false); SNodeAccessUtil.setReferenceTarget(quotedNode_4, "fieldDeclaration", (SNode) parameter_1); quotedNode_2.addChild("operation", quotedNode_4); return quotedNode_2; }
private static SNode _quotation_createNode_kvqths_a0a0j(Object parameter_1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_2 = null; SNode quotedNode_3 = null; SNode quotedNode_4 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.core.structure.structure.SStructureContainer", null, null, GlobalScope.getInstance(), false); SNodeAccessUtil.setProperty(quotedNode_2, "name", "a"); quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.core.structure.structure.SStructureEmptyLine", null, null, GlobalScope.getInstance(), false); quotedNode_2.addChild("structure", quotedNode_3); quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.core.structure.structure.SInterfaceConcept", null, null, GlobalScope.getInstance(), false); SNodeAccessUtil.setProperty(quotedNode_4, "name", (String) parameter_1); quotedNode_2.addChild("structure", quotedNode_4); return quotedNode_2; }
public SNode createNode(final TypeCheckingContext typeCheckingContext) { SNode result = null; Set<SNode> _parameterValues_129834374 = new HashSet<SNode>(); SNode quotedNode_1 = null; SNode quotedNode_2 = null; { quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.collections.structure.ListType", null, GlobalScope.getInstance(), false); SNode quotedNode1_3 = quotedNode_1; { quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.lang.smodel.structure.SNodeType", null, GlobalScope.getInstance(), false); SNode quotedNode1_4 = quotedNode_2; quotedNode_1.addChild("elementType", quotedNode1_4); } result = quotedNode1_3; } return result; }
private static SNode _quotation_createNode_5c1jtb_a0b0a0d0a(Object parameter_1) { SNode quotedNode_2 = null; SNode quotedNode_3 = null; SNode quotedNode_4 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.closures.structure.FunctionType", null, null, GlobalScope.getInstance(), false); quotedNode_3 = (SNode) parameter_1; if (quotedNode_3 != null) { quotedNode_2.addChild("parameterType", HUtil.copyIfNecessary(quotedNode_3)); } quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.VoidType", null, null, GlobalScope.getInstance(), false); quotedNode_2.addChild("resultType", quotedNode_4); return quotedNode_2; }
private static SNode _quotation_createNode_mxwyp3_a0a8a0(Object parameter_1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_2 = null; SNode quotedNode_3 = null; SNode quotedNode_4 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.lang.typesystem.structure.JoinType", null, null, GlobalScope.getInstance(), false); quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.lang.smodel.structure.SNodeType", null, null, GlobalScope.getInstance(), false); SNodeAccessUtil.setReferenceTarget(quotedNode_3, "concept", (SNode) parameter_1); quotedNode_2.addChild("argument", quotedNode_3); quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.StringType", null, null, GlobalScope.getInstance(), false); quotedNode_2.addChild("argument", quotedNode_4); return quotedNode_2; }
public SNode createNode() { SNode result = null; Set<SNode> _parameterValues_129834374 = new HashSet<SNode>(); SNode quotedNode_1 = null; SNode quotedNode_2 = null; SNode quotedNode_3 = null; SNode quotedNode_4 = null; { quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.tuples.structure.IndexedTupleType", null, GlobalScope.getInstance(), false); SNode quotedNode1_5 = quotedNode_1; { quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.ClassifierType", null, GlobalScope.getInstance(), false); SNode quotedNode1_6 = quotedNode_2; quotedNode1_6.addReference( SReference.create( "classifier", quotedNode1_6, SModelReference.fromString( "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#javax.swing(JDK/javax.swing@java_stub)"), SNodeId.fromString("~JComponent"))); quotedNode_1.addChild("componentType", quotedNode1_6); } { quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.closures.structure.FunctionType", null, GlobalScope.getInstance(), false); SNode quotedNode1_7 = quotedNode_3; { quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.VoidType", null, GlobalScope.getInstance(), false); SNode quotedNode1_8 = quotedNode_4; quotedNode_3.addChild("resultType", quotedNode1_8); } quotedNode_1.addChild("componentType", quotedNode1_7); } result = quotedNode1_5; } return result; }
private static SNode _quotation_createNode_baxqxe_a0g0b(Object parameter_1, Object parameter_2) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_3 = null; SNode quotedNode_4 = null; SNode quotedNode_5 = null; SNode quotedNode_6 = null; SNode quotedNode_7 = null; SNode quotedNode_8 = null; quotedNode_3 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.ExpressionStatement", null, null, GlobalScope.getInstance(), false); quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.AssignmentExpression", null, null, GlobalScope.getInstance(), false); quotedNode_5 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.DotExpression", null, null, GlobalScope.getInstance(), false); quotedNode_7 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.ThisExpression", null, null, GlobalScope.getInstance(), false); quotedNode_5.addChild("operand", quotedNode_7); quotedNode_8 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.FieldReferenceOperation", null, null, GlobalScope.getInstance(), false); SNodeAccessUtil.setReferenceTarget(quotedNode_8, "fieldDeclaration", (SNode) parameter_1); quotedNode_5.addChild("operation", quotedNode_8); quotedNode_4.addChild("lValue", quotedNode_5); quotedNode_6 = (SNode) parameter_2; if (quotedNode_6 != null) { quotedNode_4.addChild("rValue", HUtil.copyIfNecessary(quotedNode_6)); } quotedNode_3.addChild("expression", quotedNode_4); return quotedNode_3; }
private static SNode _quotation_createNode_5trf1k_a0a4a41a0( Object parameter_1, Object parameter_2, Object parameter_3) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_4 = null; SNode quotedNode_5 = null; SNode quotedNode_6 = null; SNode quotedNode_7 = null; SNode quotedNode_8 = null; SNode quotedNode_9 = null; quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.InstanceMethodDeclaration", null, null, GlobalScope.getInstance(), false); SNodeAccessUtil.setProperty(quotedNode_4, "name", (String) parameter_3); quotedNode_5 = (SNode) parameter_1; if (quotedNode_5 != null) { quotedNode_4.addChild("returnType", HUtil.copyIfNecessary(quotedNode_5)); } quotedNode_6 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.PublicVisibility", null, null, GlobalScope.getInstance(), false); quotedNode_4.addChild("visibility", quotedNode_6); quotedNode_7 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.StatementList", null, null, GlobalScope.getInstance(), false); quotedNode_8 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.ExpressionStatement", null, null, GlobalScope.getInstance(), false); quotedNode_9 = (SNode) parameter_2; if (quotedNode_9 != null) { quotedNode_8.addChild("expression", HUtil.copyIfNecessary(quotedNode_9)); } quotedNode_7.addChild("statement", quotedNode_8); quotedNode_4.addChild("body", quotedNode_7); return quotedNode_4; }
private static SNode _quotation_createNode_w26thq_a0a3a1(Object parameter_1) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_2 = null; SNode quotedNode_3 = null; quotedNode_2 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.ClassifierType", null, null, GlobalScope.getInstance(), false); quotedNode_2.setReference( "classifier", SReference.create( "classifier", quotedNode_2, facade.createModelReference( "f:java_stub#6354ebe7-c22a-4a0f-ac54-50b52ab9b065#java.util(JDK/java.util@java_stub)"), facade.createNodeId("~List"))); quotedNode_3 = (SNode) parameter_1; if (quotedNode_3 != null) { quotedNode_2.addChild("parameter", HUtil.copyIfNecessary(quotedNode_3)); } return quotedNode_2; }
public SNode createNode() { SNode result = null; Set<SNode> _parameterValues_129834374 = new HashSet<SNode>(); SNode quotedNode_1 = null; { quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.StaticMethodCall", null, GlobalScope.getInstance(), false); SNode quotedNode1_2 = quotedNode_1; quotedNode1_2.addReference( SReference.create( "classConcept", quotedNode1_2, SModelReference.fromString( "f:java_stub#jetbrains.mps.refactoring.framework.paramchooser.mps(jetbrains.mps.refactoring.framework.paramchooser.mps@java_stub)"), SNodeId.fromString("~MPSChooserFactory"))); quotedNode1_2.addReference( SReference.create( "baseMethodDeclaration", quotedNode1_2, SModelReference.fromString( "f:java_stub#jetbrains.mps.refactoring.framework.paramchooser.mps(jetbrains.mps.refactoring.framework.paramchooser.mps@java_stub)"), SNodeId.fromString( "~MPSChooserFactory.createNodeChooser(jetbrains.mps.refactoring.framework.RefactoringContext,java.lang.String,jetbrains.mps.refactoring.framework.paramchooser.mps.IChooserSettings):jetbrains.mps.refactoring.framework.paramchooser.IChooser"))); result = quotedNode1_2; } return result; }
private SModelDescriptor findModel(SModelReference reference) { if (reference.equals(myModel.getSModelReference())) { return myModel.getModelDescriptor(); } List<IScope> scopes = ListSequence.fromList(new ArrayList<IScope>()); IScope ps = myProject.getScope(); if (ps != null) { ListSequence.fromList(scopes).addElement(ps); } ListSequence.fromList(scopes).addElement(GlobalScope.getInstance()); for (IScope scope : ListSequence.fromList(scopes)) { SModelDescriptor md = scope.getModelDescriptor(reference); if (md != null) { return md; } } // if we can't find model using full reference, try to find by fq-name // this is needed for viewing diff on models saved before MPS 2.0 M5 for (IScope scope : ListSequence.fromList(scopes)) { SModelDescriptor md = scope.getModelDescriptor(reference.getSModelFqName()); if (md != null) { return md; } } return null; }
protected Set<IModule> getInitialModules() { Set<IModule> result = SetSequence.fromSet(new HashSet<IModule>()); SetSequence.fromSet(result).addElement(DiffTemporaryModule.this); SetSequence.fromSet(result) .addSequence(Sequence.fromIterable(GlobalScope.getInstance().getVisibleModules())); return result; }
private static SNode _quotation_createNode_baxqxe_a0a0c0b( Object parameter_1, Object parameter_2, Object parameter_3, Object parameter_4) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_5 = null; SNode quotedNode_6 = null; SNode quotedNode_7 = null; SNode quotedNode_8 = null; quotedNode_5 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.FieldDeclaration", null, null, GlobalScope.getInstance(), false); SNodeAccessUtil.setProperty(quotedNode_5, "name", (String) parameter_4); quotedNode_6 = (SNode) parameter_1; if (quotedNode_6 != null) { quotedNode_5.addChild("visibility", HUtil.copyIfNecessary(quotedNode_6)); } quotedNode_7 = (SNode) parameter_2; if (quotedNode_7 != null) { quotedNode_5.addChild("type", HUtil.copyIfNecessary(quotedNode_7)); } quotedNode_8 = (SNode) parameter_3; if (quotedNode_8 != null) { quotedNode_5.addChild("initializer", HUtil.copyIfNecessary(quotedNode_8)); } return quotedNode_5; }
private static SNode _quotation_createNode_78c6t8_a0a0a( Object parameter_1, Object parameter_2, Object parameter_3) { PersistenceFacade facade = PersistenceFacade.getInstance(); SNode quotedNode_4 = null; SNode quotedNode_5 = null; SNode quotedNode_6 = null; SNode quotedNode_7 = null; quotedNode_4 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.structure.TernaryOperatorExpression", null, null, GlobalScope.getInstance(), false); quotedNode_5 = (SNode) parameter_1; if (quotedNode_5 != null) { quotedNode_4.addChild("condition", HUtil.copyIfNecessary(quotedNode_5)); } quotedNode_6 = (SNode) parameter_2; if (quotedNode_6 != null) { quotedNode_4.addChild("ifTrue", HUtil.copyIfNecessary(quotedNode_6)); } quotedNode_7 = (SNode) parameter_3; if (quotedNode_7 != null) { quotedNode_4.addChild("ifFalse", HUtil.copyIfNecessary(quotedNode_7)); } return quotedNode_4; }
public SNode createNode(Object parameter_5, final TypeCheckingContext typeCheckingContext) { SNode result = null; Set<SNode> _parameterValues_129834374 = new HashSet<SNode>(); SNode quotedNode_1 = null; SNode quotedNode_2 = null; { quotedNode_1 = SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.collections.structure.SequenceType", null, GlobalScope.getInstance(), false); SNode quotedNode1_3 = quotedNode_1; { quotedNode_2 = (SNode) parameter_5; SNode quotedNode1_4; if (_parameterValues_129834374.contains(quotedNode_2)) { quotedNode1_4 = HUtil.copyIfNecessary(quotedNode_2, typeCheckingContext); } else { _parameterValues_129834374.add(quotedNode_2); quotedNode1_4 = quotedNode_2; } if (quotedNode1_4 != null) { quotedNode_1.addChild( "elementType", HUtil.copyIfNecessary(quotedNode1_4, typeCheckingContext)); } } result = quotedNode1_3; } return result; }
public SNodePointer getConcept() { if (myConcept == null) { myConcept = new SNodePointer( SModelUtil.findConceptDeclaration(myConceptName, GlobalScope.getInstance())); } return myConcept; }
public static CharFileConditionalExpression newInstance(SModel sm, boolean init) { return (CharFileConditionalExpression) SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.bash.structure.CharFileConditionalExpression", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static ProvidedInterfaceConnectionEndpoint newInstance(SModel sm, boolean init) { return (ProvidedInterfaceConnectionEndpoint) SModelUtil_new.instantiateConceptDeclaration( "mps.samples.architecture.structure.ProvidedInterfaceConnectionEndpoint", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static NumericConstant newInstance(SModel sm, boolean init) { return (NumericConstant) SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.samples.lambdaCalculus.structure.NumericConstant", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static DebuggerReference newInstance(SModel sm, boolean init) { return (DebuggerReference) SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.debugger.api.lang.structure.DebuggerReference", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static SideTransformVariableDeclaration newInstance(SModel sm, boolean init) { return (SideTransformVariableDeclaration) SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.lang.actions.structure.SideTransformVariableDeclaration", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static MGDEnumerationDataType newInstance(SModel sm, boolean init) { return (MGDEnumerationDataType) SModelUtil_new.instantiateConceptDeclaration( "de.compago.mps.langdoc.structure.MGDEnumerationDataType", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static DispatchedElementRef newInstance(SModel sm, boolean init) { return (DispatchedElementRef) SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baselanguage.dispatch.structure.DispatchedElementRef", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static GetEditorOperation newInstance(SModel sm, boolean init) { return (GetEditorOperation) SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.execution.settings.structure.GetEditorOperation", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static InterfaceReference newInstance(SModel sm, boolean init) { return (InterfaceReference) SModelUtil_new.instantiateConceptDeclaration( "mps.samples.architecture.base.structure.InterfaceReference", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static MappingType newInstance(SModel sm, boolean init) { return (MappingType) SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.baseLanguage.collections.structure.MappingType", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static Node_GetAdapterOperation newInstance(SModel sm, boolean init) { return (Node_GetAdapterOperation) SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.lang.smodel.structure.Node_GetAdapterOperation", sm, GlobalScope.getInstance(), init) .getAdapter(); }
public static ToolbarCreator newInstance(SModel sm, boolean init) { return (ToolbarCreator) SModelUtil_new.instantiateConceptDeclaration( "jetbrains.mps.lang.plugin.structure.ToolbarCreator", sm, GlobalScope.getInstance(), init) .getAdapter(); }