use of org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Named in project xtext-core by eclipse.
the class ElementImpl method basicSetFirst.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetFirst(Named newFirst, NotificationChain msgs) {
Named oldFirst = first;
first = newFirst;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bug317840TestLanguagePackage.ELEMENT__FIRST, oldFirst, newFirst);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Named 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));
}
use of org.eclipse.xtext.parser.terminalrules.bug317840TestLanguage.Named in project xtext-core by eclipse.
the class ElementImpl method basicSetSecond.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetSecond(Named newSecond, NotificationChain msgs) {
Named oldSecond = second;
second = newSecond;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bug317840TestLanguagePackage.ELEMENT__SECOND, oldSecond, newSecond);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations