use of org.eclipse.emf.ecore.EPackage in project xtext-core by eclipse.
the class Bug287184TestLanguageSemanticSequencer 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 == Bug287184TestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug287184TestPackage.ASSOCIATED_DETAIL:
sequence_AssociatedDetail(context, (AssociatedDetail) semanticObject);
return;
case Bug287184TestPackage.DETAIL:
sequence_Detail(context, (Detail) semanticObject);
return;
case Bug287184TestPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.emf.ecore.EPackage in project xtext-core by eclipse.
the class DatatypeRulesTestLanguageSemanticSequencer 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 == DatatypeRulesTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case DatatypeRulesTestLanguagePackage.COMPOSITE_MODEL:
sequence_CompositeModel(context, (CompositeModel) semanticObject);
return;
case DatatypeRulesTestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.emf.ecore.EPackage in project xtext-core by eclipse.
the class AbstractBug301935TestLanguageSemanticSequencer 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 == Bug301935TestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug301935TestPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.emf.ecore.EPackage in project xtext-core by eclipse.
the class Bug289524ExTestLanguageSemanticSequencer 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 == Bug289524ExTestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug289524ExTestPackage.CONTAINED:
sequence_Contained(context, (Contained) semanticObject);
return;
case Bug289524ExTestPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case Bug289524ExTestPackage.MODEL_ELEMENT:
sequence_ModelElement(context, (ModelElement) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.emf.ecore.EPackage in project xtext-core by eclipse.
the class Bug289524TestLanguageSemanticSequencer 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 == Bug289524TestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug289524TestPackage.CONTAINED:
sequence_Contained(context, (Contained) semanticObject);
return;
case Bug289524TestPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case Bug289524TestPackage.MODEL_ELEMENT:
sequence_ModelElement(context, (ModelElement) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations