use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.
the class MetamodelRefTestLanguageSemanticSequencer 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 == AnotherSimpleTestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case AnotherSimpleTestPackage.FOO:
sequence_Foo(context, (Foo) semanticObject);
return;
}
else if (epackage == XtextPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case XtextPackage.PARSER_RULE:
sequence_MyRule(context, (ParserRule) semanticObject);
return;
case XtextPackage.RULE_CALL:
sequence_NameRef(context, (RuleCall) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.Parameter 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.xtext.Parameter 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.xtext.Parameter 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.xtext.Parameter 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));
}
Aggregations