Exemplo n.º 1
0
 /** Constraint: name=ID */
 protected void sequence_Bar(EObject context, Bar semanticObject) {
   if (errorAcceptor != null) {
     if (transientValues.isValueTransient(semanticObject, Bug313089Package.Literals.BAR__NAME)
         == ValueTransient.YES)
       errorAcceptor.accept(
           diagnosticProvider.createFeatureValueMissing(
               semanticObject, Bug313089Package.Literals.BAR__NAME));
   }
   INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
   SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
   feeder.accept(
       grammarAccess.getBarAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());
   feeder.finish();
 }
Exemplo n.º 2
0
 public void createSequence(EObject context, EObject semanticObject) {
   if (semanticObject.eClass().getEPackage() == Bug313089Package.eINSTANCE)
     switch (semanticObject.eClass().getClassifierID()) {
       case Bug313089Package.BAR:
         if (context == grammarAccess.getBarRule()) {
           sequence_Bar(context, (Bar) semanticObject);
           return;
         } else break;
       case Bug313089Package.BAZ:
         if (context == grammarAccess.getBazRule()
             || context == grammarAccess.getBazAccess().getBazChildAction_2_0()) {
           sequence_Baz(context, (Baz) semanticObject);
           return;
         } else break;
       case Bug313089Package.FOO:
         if (context == grammarAccess.getFooRule()) {
           sequence_Foo(context, (Foo) semanticObject);
           return;
         } else break;
     }
   if (errorAcceptor != null)
     errorAcceptor.accept(
         diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
 }