Search in sources :

Example 1 with OverridingHiddens

use of org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.OverridingHiddens in project xtext-core by eclipse.

the class HiddenTerminalsTestLanguageSemanticSequencer method sequence.

@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
    EPackage epackage = semanticObject.eClass().getEPackage();
    ParserRule rule = context.getParserRule();
    Action action = context.getAssignedAction();
    Set<Parameter> parameters = context.getEnabledBooleanParameters();
    if (epackage == HiddenTerminalsTestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case HiddenTerminalsTestLanguagePackage.DATATYPE_HIDDENS:
                sequence_DatatypeHiddens(context, (DatatypeHiddens) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.HIDING_HIDDENS:
                sequence_HidingHiddens(context, (HidingHiddens) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.INHERITING_HIDDENS:
                sequence_InheritingHiddens(context, (InheritingHiddens) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.INHERITING_HIDDENS_CALL:
                sequence_InheritingHiddensCall(context, (InheritingHiddensCall) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.OVERRIDING_HIDDENS:
                sequence_OverridingHiddens(context, (OverridingHiddens) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.OVERRIDING_HIDDENS_CALL:
                sequence_OverridingHiddensCall(context, (OverridingHiddensCall) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.WITH_HIDDENS:
                sequence_WithHiddens(context, (WithHiddens) semanticObject);
                return;
            case HiddenTerminalsTestLanguagePackage.WITHOUT_HIDDENS:
                sequence_WithoutHiddens(context, (WithoutHiddens) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : HidingHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.HidingHiddens) ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) OverridingHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.OverridingHiddens) WithoutHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.WithoutHiddens) EPackage(org.eclipse.emf.ecore.EPackage) WithHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.WithHiddens) InheritingHiddensCall(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.InheritingHiddensCall) InheritingHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.InheritingHiddens) OverridingHiddensCall(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.OverridingHiddensCall) Parameter(org.eclipse.xtext.Parameter) DatatypeHiddens(org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.DatatypeHiddens)

Aggregations

EPackage (org.eclipse.emf.ecore.EPackage)1 Action (org.eclipse.xtext.Action)1 Parameter (org.eclipse.xtext.Parameter)1 ParserRule (org.eclipse.xtext.ParserRule)1 DatatypeHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.DatatypeHiddens)1 HidingHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.HidingHiddens)1 InheritingHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.InheritingHiddens)1 InheritingHiddensCall (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.InheritingHiddensCall)1 OverridingHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.OverridingHiddens)1 OverridingHiddensCall (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.OverridingHiddensCall)1 WithHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.WithHiddens)1 WithoutHiddens (org.eclipse.xtext.parser.terminalrules.hiddenTerminalsTestLanguage.WithoutHiddens)1