Package com.puppetlabs.geppetto.pp.dsl.services.PPGrammarAccess

Examples of com.puppetlabs.geppetto.pp.dsl.services.PPGrammarAccess.SelectorExpressionElements


   */
  @Override
  protected void sequence_SelectorExpression(EObject context, SelectorExpression semanticObject) {
    INodesForEObjectProvider nodes = createNodeProvider(semanticObject);
    SequenceFeeder feeder = createSequencerFeeder(semanticObject, nodes);
    SelectorExpressionElements access = grammarAccess.getSelectorExpressionAccess();

    feeder.accept(access.getSelectorExpressionLeftExprAction_1_0(), semanticObject.getLeftExpr());
    Iterator<Expression> itor = semanticObject.getParameters().iterator();
    int index = 0;
    // always serialize with the non-shortened form left ? { a => b, ... }
    while(itor.hasNext()) {
      Expression p = itor.next();
      if(index == 0)
        feeder.accept(access.getParametersSelectorEntryParserRuleCall_1_2_0_1_0(), p, index);
      else
        feeder.accept(access.getParametersSelectorEntryParserRuleCall_1_2_0_2_0_1_0(), p, index);
      index++;
    }
    feeder.finish();
    // super.sequence_SelectorExpression(context, semanticObject);
  }
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.pp.dsl.services.PPGrammarAccess.SelectorExpressionElements

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.