function parse_wf_outputs()

in src/parser/WDL/hermes/wdl_parser.js [3767:3800]


function parse_wf_outputs(ctx) {
  var current = ctx.tokens.current();
  var rule = current != null ? table[27][current.id] : -1;
  var tree = new ParseTree(new NonTerminal(85, 'wf_outputs'));
  var ast_parameters;
  var subtree;
  var t;
  ctx.nonterminal = "wf_outputs";
  if (current == null) {
    throw new SyntaxError('Error: unexpected end of file');
  }
  if (rule == 61) { // $wf_outputs = :output :lbrace $_gen15 :rbrace -> WorkflowOutputs( outputs=$2 )
    ctx.rule = rules[61];
    ast_parameters = {
      'outputs': 2,
    }
    tree.astTransform = new AstTransformNodeCreator('WorkflowOutputs', ast_parameters);
    t = expect(ctx, 23); // :output
    tree.add(t);
    t = expect(ctx, 42); // :lbrace
    tree.add(t);
    subtree = parse__gen15(ctx);
    tree.add(subtree);
    t = expect(ctx, 51); // :rbrace
    tree.add(t);
    return tree;
  }
  throw new SyntaxError(ctx.error_formatter.unexpected_symbol(
    ctx.nonterminal,
    ctx.tokens.current(),
    nonterminal_first[85],
    rules[61]
  ));
}