Search in sources :

Example 1 with SecondConcrete

use of org.eclipse.xtext.testlanguages.partialParserTestLanguage.SecondConcrete in project xtext-core by eclipse.

the class PartialParserTestLanguageSemanticSequencer 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 == PartialParserTestLanguagePackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case PartialParserTestLanguagePackage.ABSTRACT_CHILDREN:
                sequence_AbstractChildren(context, (AbstractChildren) semanticObject);
                return;
            case PartialParserTestLanguagePackage.CHILD:
                sequence_Child(context, (Child) semanticObject);
                return;
            case PartialParserTestLanguagePackage.CHILDREN:
                sequence_Children(context, (Children) semanticObject);
                return;
            case PartialParserTestLanguagePackage.FIRST_CONCRETE:
                sequence_FirstConcrete(context, (FirstConcrete) semanticObject);
                return;
            case PartialParserTestLanguagePackage.NAMED:
                sequence_Named(context, (Named) semanticObject);
                return;
            case PartialParserTestLanguagePackage.NESTED:
                sequence_Nested(context, (Nested) semanticObject);
                return;
            case PartialParserTestLanguagePackage.SECOND_CONCRETE:
                sequence_SecondConcrete(context, (SecondConcrete) semanticObject);
                return;
            case PartialParserTestLanguagePackage.SOME_CONTAINER:
                sequence_SomeContainer(context, (SomeContainer) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Named(org.eclipse.xtext.testlanguages.partialParserTestLanguage.Named) Action(org.eclipse.xtext.Action) SomeContainer(org.eclipse.xtext.testlanguages.partialParserTestLanguage.SomeContainer) Nested(org.eclipse.xtext.testlanguages.partialParserTestLanguage.Nested) EPackage(org.eclipse.emf.ecore.EPackage) AbstractChildren(org.eclipse.xtext.testlanguages.partialParserTestLanguage.AbstractChildren) Parameter(org.eclipse.xtext.Parameter) SecondConcrete(org.eclipse.xtext.testlanguages.partialParserTestLanguage.SecondConcrete) Children(org.eclipse.xtext.testlanguages.partialParserTestLanguage.Children) AbstractChildren(org.eclipse.xtext.testlanguages.partialParserTestLanguage.AbstractChildren) Child(org.eclipse.xtext.testlanguages.partialParserTestLanguage.Child) FirstConcrete(org.eclipse.xtext.testlanguages.partialParserTestLanguage.FirstConcrete)

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 AbstractChildren (org.eclipse.xtext.testlanguages.partialParserTestLanguage.AbstractChildren)1 Child (org.eclipse.xtext.testlanguages.partialParserTestLanguage.Child)1 Children (org.eclipse.xtext.testlanguages.partialParserTestLanguage.Children)1 FirstConcrete (org.eclipse.xtext.testlanguages.partialParserTestLanguage.FirstConcrete)1 Named (org.eclipse.xtext.testlanguages.partialParserTestLanguage.Named)1 Nested (org.eclipse.xtext.testlanguages.partialParserTestLanguage.Nested)1 SecondConcrete (org.eclipse.xtext.testlanguages.partialParserTestLanguage.SecondConcrete)1 SomeContainer (org.eclipse.xtext.testlanguages.partialParserTestLanguage.SomeContainer)1