package testExtendingAnalyzer.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_NullSafeDotExpression;
private ConceptPresentation props_NullUnsafeDotExpression;
@Override
@Nullable
public ConceptPresentation getDescriptor(SAbstractConcept c) {
StructureAspectDescriptor structureDescriptor = (StructureAspectDescriptor) myLanguageRuntime.getAspect(jetbrains.mps.smodel.runtime.StructureAspectDescriptor.class);
switch (structureDescriptor.internalIndex(c)) {
case LanguageConceptSwitch.NullSafeDotExpression:
if (props_NullSafeDotExpression == null) {
ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
props_NullSafeDotExpression = cpb.create();
}
return props_NullSafeDotExpression;
case LanguageConceptSwitch.NullUnsafeDotExpression:
if (props_NullUnsafeDotExpression == null) {
ConceptPresentationBuilder cpb = new ConceptPresentationBuilder();
props_NullUnsafeDotExpression = cpb.create();
}
return props_NullUnsafeDotExpression;
}
return null;
}
}