use of org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.SimpleTerm in project xtext-core by eclipse.
the class AbstractBacktrackingBug325745TestLanguageSemanticSequencer 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 == BacktrackingBug325745TestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case BacktrackingBug325745TestLanguagePackage.DATA_TYPE:
sequence_DataType(context, (DataType) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.ELEMENT:
sequence_Element(context, (Element) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.EXPRESSION:
sequence_Expression(context, (Expression) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.SIMPLE_TERM:
sequence_SimpleTerm(context, (SimpleTerm) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.SimpleTerm in project xtext-core by eclipse.
the class SimpleBacktrackingBug325745TestLanguageSemanticSequencer 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 == BacktrackingBug325745TestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case BacktrackingBug325745TestLanguagePackage.DATA_TYPE:
sequence_DataType(context, (DataType) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.ELEMENT:
sequence_Element(context, (Element) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.EXPRESSION:
sequence_Expression(context, (Expression) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.SIMPLE_TERM:
sequence_SimpleTerm(context, (SimpleTerm) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.SimpleTerm in project xtext-core by eclipse.
the class ExBacktrackingBug325745TestLanguageSemanticSequencer 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 == BacktrackingBug325745TestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case BacktrackingBug325745TestLanguagePackage.DATA_TYPE:
sequence_DataType(context, (DataType) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.ELEMENT:
sequence_Element(context, (Element) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.EXPRESSION:
sequence_Expression(context, (Expression) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.SIMPLE_TERM:
sequence_SimpleTerm(context, (SimpleTerm) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations