use of org.eclipse.xtext.generator.grammarAccess.ametamodel.asubpackage.AType in project xtext-core by eclipse.
the class AnotherTypeImpl method setRef.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setRef(AType newRef) {
AType oldRef = ref;
ref = newRef;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, SubsubpackagePackage.ANOTHER_TYPE__REF, oldRef, ref));
}
use of org.eclipse.xtext.generator.grammarAccess.ametamodel.asubpackage.AType in project xtext-core by eclipse.
the class GrammarAccessTestLanguageSemanticSequencer 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 == AsubpackagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case AsubpackagePackage.AMODEL:
sequence_Root(context, (AModel) semanticObject);
return;
case AsubpackagePackage.ATYPE:
sequence_AType(context, (AType) semanticObject);
return;
}
else if (epackage == SubsubpackagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case SubsubpackagePackage.ANOTHER_TYPE:
sequence_AnotherType(context, (AnotherType) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations