use of org.eclipse.xtext.ui.tests.editor.contentassist.bug347012TestLanguage.MyProgram in project xtext-eclipse by eclipse.
the class Bug347012TestLanguageSemanticSequencer 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 == Bug347012TestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug347012TestLanguagePackage.IDENTIFIER:
sequence_Identifier(context, (Identifier) semanticObject);
return;
case Bug347012TestLanguagePackage.LITERAL:
sequence_Literal(context, (Literal) semanticObject);
return;
case Bug347012TestLanguagePackage.MY_ATTRIBUTE:
sequence_MyAttribute(context, (MyAttribute) semanticObject);
return;
case Bug347012TestLanguagePackage.MY_ATTRIBUTES:
sequence_MyAttributes(context, (MyAttributes) semanticObject);
return;
case Bug347012TestLanguagePackage.MY_BINDING:
sequence_MyBinding(context, (MyBinding) semanticObject);
return;
case Bug347012TestLanguagePackage.MY_CLASS:
sequence_MyClass(context, (MyClass) semanticObject);
return;
case Bug347012TestLanguagePackage.MY_FIELD:
sequence_MyField(context, (MyField) semanticObject);
return;
case Bug347012TestLanguagePackage.MY_PACKAGE:
sequence_MyPackage(context, (MyPackage) semanticObject);
return;
case Bug347012TestLanguagePackage.MY_PROGRAM:
sequence_MyProgram(context, (MyProgram) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations