use of org.eclipse.xtext.parser.unorderedGroups.backtrackingBug325745TestLanguage.DataType in project xtext-core by eclipse.
the class AbstractBacktrackingBug325745TestLanguageSemanticSequencer 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.parser.unorderedGroups.backtrackingBug325745TestLanguage.DataType in project xtext-core by eclipse.
the class SimpleBacktrackingBug325745TestLanguageSemanticSequencer 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.parser.unorderedGroups.backtrackingBug325745TestLanguage.DataType 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.parser.unorderedGroups.backtrackingBug325745TestLanguage.DataType in project xtext-core by eclipse.
the class ElementImpl method basicSetDataType.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDataType(DataType newDataType, NotificationChain msgs) {
DataType oldDataType = dataType;
dataType = newDataType;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, BacktrackingBug325745TestLanguagePackage.ELEMENT__DATA_TYPE, oldDataType, newDataType);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations