use of org.eclipse.xtext.ParserRule in project xtext-core by eclipse.
the class FowlerDslTestLanguageSemanticSequencer 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 == FowlerdslPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case FowlerdslPackage.COMMAND:
sequence_Command(context, (Command) semanticObject);
return;
case FowlerdslPackage.EVENT:
sequence_Event(context, (Event) semanticObject);
return;
case FowlerdslPackage.STATE:
sequence_State(context, (State) semanticObject);
return;
case FowlerdslPackage.STATEMACHINE:
sequence_Statemachine(context, (Statemachine) semanticObject);
return;
case FowlerdslPackage.TRANSITION:
sequence_Transition(context, (Transition) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.ParserRule in project xtext-core by eclipse.
the class OptionalEmptyTestLanguageSemanticSequencer 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 == OptionalEmptyPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case OptionalEmptyPackage.GREETING:
sequence_Greeting(context, (Greeting) semanticObject);
return;
case OptionalEmptyPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.ParserRule 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));
}
use of org.eclipse.xtext.ParserRule in project xtext-core by eclipse.
the class ReferenceGrammarTestLanguageSemanticSequencer 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 == ReferenceGrammarPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case ReferenceGrammarPackage.ERWACHSENER:
sequence_Erwachsener(context, (Erwachsener) semanticObject);
return;
case ReferenceGrammarPackage.FAMILIE:
sequence_Familie(context, (Familie) semanticObject);
return;
case ReferenceGrammarPackage.FARBE:
sequence_Farbe(context, (Farbe) semanticObject);
return;
case ReferenceGrammarPackage.KIND:
sequence_Kind(context, (Kind) semanticObject);
return;
case ReferenceGrammarPackage.SPIELPLATZ:
sequence_Spielplatz(context, (Spielplatz) semanticObject);
return;
case ReferenceGrammarPackage.SPIELZEUG:
sequence_Spielzeug(context, (Spielzeug) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.ParserRule in project xtext-core by eclipse.
the class TestLanguageSemanticSequencer 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 == TestLangPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case TestLangPackage.CHOICE_ELEMENT:
sequence_ChoiceRule(context, (ChoiceElement) semanticObject);
return;
case TestLangPackage.MODEL:
sequence_EntryRule(context, (Model) semanticObject);
return;
case TestLangPackage.REDUCIBLE_COMPOSITE:
sequence_ReducibleRule(context, (ReducibleComposite) semanticObject);
return;
case TestLangPackage.TERMINAL_ELEMENT:
sequence_TerminalRule(context, (TerminalElement) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations