use of org.eclipse.xtext.resource.locationprovidertest.Element in project xtext-core by eclipse.
the class ElementImpl method setSingleref.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSingleref(Element newSingleref) {
Element oldSingleref = singleref;
singleref = newSingleref;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, LocationprovidertestPackage.ELEMENT__SINGLEREF, oldSingleref, singleref));
}
use of org.eclipse.xtext.resource.locationprovidertest.Element in project xtext-core by eclipse.
the class LocationProviderTestLanguageSemanticSequencer 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 == LocationprovidertestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case LocationprovidertestPackage.BUS:
if (rule == grammarAccess.getBusRule()) {
sequence_Bus(context, (Bus) semanticObject);
return;
} else if (rule == grammarAccess.getComponentRule()) {
sequence_Bus_Component(context, (Bus) semanticObject);
return;
} else
break;
case LocationprovidertestPackage.DATA:
sequence_Data(context, (Data) semanticObject);
return;
case LocationprovidertestPackage.ELEMENT:
sequence_Element(context, (Element) semanticObject);
return;
case LocationprovidertestPackage.MODE:
sequence_Mode(context, (Mode) semanticObject);
return;
case LocationprovidertestPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case LocationprovidertestPackage.PORT:
sequence_Port(context, (Port) semanticObject);
return;
case LocationprovidertestPackage.PROCESSOR:
if (rule == grammarAccess.getComponentRule()) {
sequence_Component_Processor(context, (Processor) semanticObject);
return;
} else if (rule == grammarAccess.getProcessorRule()) {
sequence_Processor(context, (Processor) semanticObject);
return;
} else
break;
case LocationprovidertestPackage.TRANSITION:
sequence_Transition(context, (Transition) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations