use of org.eclipse.xtext.testlanguages.partialParserTestLanguage.Named in project xtext-core by eclipse.
the class ChildImpl method basicSetValue.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValue(Named newValue, NotificationChain msgs) {
Named oldValue = value;
value = newValue;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PartialParserTestLanguagePackage.CHILD__VALUE, oldValue, newValue);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.testlanguages.partialParserTestLanguage.Named in project xtext-core by eclipse.
the class PartialParserTestLanguageSemanticSequencer 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 == PartialParserTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case PartialParserTestLanguagePackage.ABSTRACT_CHILDREN:
sequence_AbstractChildren(context, (AbstractChildren) semanticObject);
return;
case PartialParserTestLanguagePackage.CHILD:
sequence_Child(context, (Child) semanticObject);
return;
case PartialParserTestLanguagePackage.CHILDREN:
sequence_Children(context, (Children) semanticObject);
return;
case PartialParserTestLanguagePackage.FIRST_CONCRETE:
sequence_FirstConcrete(context, (FirstConcrete) semanticObject);
return;
case PartialParserTestLanguagePackage.NAMED:
sequence_Named(context, (Named) semanticObject);
return;
case PartialParserTestLanguagePackage.NESTED:
sequence_Nested(context, (Nested) semanticObject);
return;
case PartialParserTestLanguagePackage.SECOND_CONCRETE:
sequence_SecondConcrete(context, (SecondConcrete) semanticObject);
return;
case PartialParserTestLanguagePackage.SOME_CONTAINER:
sequence_SomeContainer(context, (SomeContainer) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.testlanguages.partialParserTestLanguage.Named in project xtext-core by eclipse.
the class AbstractChildImpl method basicSetValue.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetValue(Named newValue, NotificationChain msgs) {
Named oldValue = value;
value = newValue;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, PartialParserTestLanguagePackage.ABSTRACT_CHILD__VALUE, oldValue, newValue);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations