use of org.eclipse.xtext.lexer.backtrackingTestLanguage.Xb in project xtext-core by eclipse.
the class BacktrackingLexerTestLanguageSemanticSequencer 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 == BacktrackingTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case BacktrackingTestLanguagePackage.AB:
sequence_Ab(context, (Ab) semanticObject);
return;
case BacktrackingTestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case BacktrackingTestLanguagePackage.XB:
sequence_Xb(context, (Xb) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations