use of org.eclipse.xtext.index.indexTestLanguage.Property in project xtext-core by eclipse.
the class AbstractIndexTestLanguageSemanticSequencer 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 == IndexTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case IndexTestLanguagePackage.DATATYPE:
sequence_Datatype(context, (Datatype) semanticObject);
return;
case IndexTestLanguagePackage.ENTITY:
sequence_Entity(context, (Entity) semanticObject);
return;
case IndexTestLanguagePackage.FILE:
sequence_File(context, (File) semanticObject);
return;
case IndexTestLanguagePackage.IMPORT:
sequence_Import(context, (Import) semanticObject);
return;
case IndexTestLanguagePackage.NAMESPACE:
sequence_Namespace(context, (Namespace) semanticObject);
return;
case IndexTestLanguagePackage.PROPERTY:
sequence_Property(context, (Property) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations