use of org.eclipse.xtext.Parameter in project xtext-core by eclipse.
the class ExBacktrackingBug325745TestLanguageSemanticSequencer 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 == BacktrackingBug325745TestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case BacktrackingBug325745TestLanguagePackage.DATA_TYPE:
sequence_DataType(context, (DataType) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.ELEMENT:
sequence_Element(context, (Element) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.EXPRESSION:
sequence_Expression(context, (Expression) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case BacktrackingBug325745TestLanguagePackage.SIMPLE_TERM:
sequence_SimpleTerm(context, (SimpleTerm) 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 SimpleUnorderedGroupsTestLanguageSemanticSequencer 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 == UnorderedGroupsTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case UnorderedGroupsTestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case UnorderedGroupsTestLanguagePackage.NESTED_MODEL:
sequence_NestedModel(context, (NestedModel) semanticObject);
return;
case UnorderedGroupsTestLanguagePackage.UNORDERED_SERIALIZATION:
sequence_UnorderedSerialization(context, (UnorderedSerialization) 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 UnorderedGroupsTestLanguageSemanticSequencer 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 == UnorderedGroupsTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case UnorderedGroupsTestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case UnorderedGroupsTestLanguagePackage.NESTED_MODEL:
sequence_NestedModel(context, (NestedModel) semanticObject);
return;
case UnorderedGroupsTestLanguagePackage.UNORDERED_SERIALIZATION:
sequence_UnorderedSerialization(context, (UnorderedSerialization) 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 Bug297105TestLanguageSemanticSequencer 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 == Bug297105TestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug297105TestLanguagePackage.EXPRESSION:
sequence_Expression(context, (Expression) semanticObject);
return;
case Bug297105TestLanguagePackage.INT_LITERAL:
sequence_IntLiteral(context, (IntLiteral) semanticObject);
return;
case Bug297105TestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case Bug297105TestLanguagePackage.REAL_LITERAL:
sequence_RealLiteral(context, (RealLiteral) 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 Bug317840TestLanguageSemanticSequencer 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 == Bug317840TestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug317840TestLanguagePackage.ELEMENT:
sequence_Element(context, (Element) semanticObject);
return;
case Bug317840TestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case Bug317840TestLanguagePackage.NAMED:
sequence_Named(context, (Named) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations