Search in sources :

Example 1 with AssociatedDetail

use of org.eclipse.xtext.parser.assignments.bug287184Test.AssociatedDetail in project xtext-core by eclipse.

the class Bug287184TestLanguageSemanticSequencer 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 == Bug287184TestPackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case Bug287184TestPackage.ASSOCIATED_DETAIL:
                sequence_AssociatedDetail(context, (AssociatedDetail) semanticObject);
                return;
            case Bug287184TestPackage.DETAIL:
                sequence_Detail(context, (Detail) semanticObject);
                return;
            case Bug287184TestPackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) AssociatedDetail(org.eclipse.xtext.parser.assignments.bug287184Test.AssociatedDetail) Action(org.eclipse.xtext.Action) Model(org.eclipse.xtext.parser.assignments.bug287184Test.Model) Parameter(org.eclipse.xtext.Parameter) AssociatedDetail(org.eclipse.xtext.parser.assignments.bug287184Test.AssociatedDetail) Detail(org.eclipse.xtext.parser.assignments.bug287184Test.Detail) EPackage(org.eclipse.emf.ecore.EPackage)

Aggregations

EPackage (org.eclipse.emf.ecore.EPackage)1 Action (org.eclipse.xtext.Action)1 Parameter (org.eclipse.xtext.Parameter)1 ParserRule (org.eclipse.xtext.ParserRule)1 AssociatedDetail (org.eclipse.xtext.parser.assignments.bug287184Test.AssociatedDetail)1 Detail (org.eclipse.xtext.parser.assignments.bug287184Test.Detail)1 Model (org.eclipse.xtext.parser.assignments.bug287184Test.Model)1