Search in sources :

Example 1 with SuppressedHiddenSubID

use of org.eclipse.xtext.parsetree.formatter.formattertestlanguage.SuppressedHiddenSubID in project xtext-core by eclipse.

the class FormatterTestLanguageSemanticSequencer 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 == FormattertestlanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case FormattertestlanguagePackage.ASSIGN:
                sequence_Assign(context, (Assign) semanticObject);
                return;
            case FormattertestlanguagePackage.DATATYPES:
                sequence_Datatypes(context, (Datatypes) semanticObject);
                return;
            case FormattertestlanguagePackage.DECL:
                sequence_Decl(context, (Decl) semanticObject);
                return;
            case FormattertestlanguagePackage.ENUMERATION:
                sequence_Enumeration(context, (Enumeration) semanticObject);
                return;
            case FormattertestlanguagePackage.FQN_OBJ:
                sequence_FqnObj(context, (FqnObj) semanticObject);
                return;
            case FormattertestlanguagePackage.FQN_REF:
                sequence_FqnRef(context, (FqnRef) semanticObject);
                return;
            case FormattertestlanguagePackage.METH:
                sequence_Meth(context, (Meth) semanticObject);
                return;
            case FormattertestlanguagePackage.PARAM:
                sequence_Param(context, (Param) semanticObject);
                return;
            case FormattertestlanguagePackage.SPACE:
                sequence_Space(context, (Space) semanticObject);
                return;
            case FormattertestlanguagePackage.SUPPRESSED_HIDDEN:
                sequence_SuppressedHidden(context, (SuppressedHidden) semanticObject);
                return;
            case FormattertestlanguagePackage.SUPPRESSED_HIDDEN_SUB_ID:
                sequence_SuppressedHiddenSubID(context, (SuppressedHiddenSubID) semanticObject);
                return;
            case FormattertestlanguagePackage.SUPPRESSED_HIDDEN_SUB_SUB:
                sequence_SuppressedHiddenSubSub(context, (SuppressedHiddenSubSub) semanticObject);
                return;
            case FormattertestlanguagePackage.TEST_INDENTATION:
                sequence_TestIndentation(context, (TestIndentation) semanticObject);
                return;
            case FormattertestlanguagePackage.TEST_LINEWRAP:
                sequence_TestLinewrap(context, (TestLinewrap) semanticObject);
                return;
            case FormattertestlanguagePackage.TEST_LINEWRAP_MIN_MAX:
                sequence_TestLinewrapMinMax(context, (TestLinewrapMinMax) semanticObject);
                return;
            case FormattertestlanguagePackage.WRAPPING_DATA_TYPE_TEST:
                sequence_WrappingDataTypeTest(context, (WrappingDataTypeTest) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : Space(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Space) ParserRule(org.eclipse.xtext.ParserRule) TestLinewrapMinMax(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.TestLinewrapMinMax) Action(org.eclipse.xtext.Action) Enumeration(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Enumeration) SuppressedHidden(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.SuppressedHidden) SuppressedHiddenSubID(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.SuppressedHiddenSubID) Meth(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Meth) TestIndentation(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.TestIndentation) Decl(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Decl) FqnObj(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.FqnObj) SuppressedHiddenSubSub(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.SuppressedHiddenSubSub) FqnRef(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.FqnRef) EPackage(org.eclipse.emf.ecore.EPackage) WrappingDataTypeTest(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.WrappingDataTypeTest) Param(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Param) TestLinewrap(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.TestLinewrap) Parameter(org.eclipse.xtext.Parameter) Assign(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Assign) Datatypes(org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Datatypes)

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 Assign (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Assign)1 Datatypes (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Datatypes)1 Decl (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Decl)1 Enumeration (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Enumeration)1 FqnObj (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.FqnObj)1 FqnRef (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.FqnRef)1 Meth (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Meth)1 Param (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Param)1 Space (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Space)1 SuppressedHidden (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.SuppressedHidden)1 SuppressedHiddenSubID (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.SuppressedHiddenSubID)1 SuppressedHiddenSubSub (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.SuppressedHiddenSubSub)1 TestIndentation (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.TestIndentation)1 TestLinewrap (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.TestLinewrap)1 TestLinewrapMinMax (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.TestLinewrapMinMax)1 WrappingDataTypeTest (org.eclipse.xtext.parsetree.formatter.formattertestlanguage.WrappingDataTypeTest)1