package jetbrains.mps.lang.slanguage.structure; /*Generated by MPS */ import jetbrains.mps.smodel.runtime.ConceptPresentationAspectBase; import jetbrains.mps.smodel.runtime.ConceptPresentation; import org.jetbrains.annotations.Nullable; import org.jetbrains.mps.openapi.language.SAbstractConcept; import jetbrains.mps.smodel.runtime.ConceptPresentationBuilder; public class ConceptPresentationAspectImpl extends ConceptPresentationAspectBase { private ConceptPresentation props_AspectModelRefExpression; private ConceptPresentation props_Model_IsAspectOperation; @Override @Nullable public ConceptPresentation getDescriptor(SAbstractConcept c) { StructureAspectDescriptor structureDescriptor = (StructureAspectDescriptor) myLanguageRuntime.getAspect(jetbrains.mps.smodel.runtime.StructureAspectDescriptor.class); switch (structureDescriptor.internalIndex(c)) { case LanguageConceptSwitch.AspectModelRefExpression: if (props_AspectModelRefExpression == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_AspectModelRefExpression = cpb.create(); } return props_AspectModelRefExpression; case LanguageConceptSwitch.Model_IsAspectOperation: if (props_Model_IsAspectOperation == null) { ConceptPresentationBuilder cpb = new ConceptPresentationBuilder(); props_Model_IsAspectOperation = cpb.create(); } return props_Model_IsAspectOperation; } return null; } }