sample-proxies/graphql-sample/graphql-proxy/apiproxy/resources/jsc/graphql.jsc.js
/**
     * UnionTypeExtension :
     *   - extend union Name Directives[Const]? UnionMemberTypes
     *   - extend union Name Directives[Const]
     */
UnionTypeExtension :
- extend union Name Directives[Const]. UnionMemberTypes
- extend union Name Directives[Const]
UnionTypeExtension : - extend union Name Directives [ Const ] . UnionMemberTypes - extend union Name Directives [ Const ]
function parseUnionTypeExtension(lexer) {
      var start = lexer.token;
      expectKeyword(lexer, 'extend');
      expectKeyword(lexer, 'union');
      var name = parseName(lexer);
      var directives = parseDirectives(lexer, true);
      var types = parseUnionMemberTypes(lexer);
      if (directives.length === 0 && types.length === 0) {
        throw unexpected(lexer);
      }
      return {
        kind: Kind.UNION_TYPE_EXTENSION,
        name: name,
        directives: directives,
        types: types,
        loc: loc(lexer, start)
      };
    }
function parseUnionTypeExtension ( lexer ) { var start = lexer . token ; expectKeyword ( lexer , 'extend' ) ; expectKeyword ( lexer , 'union' ) ; var name = parseName ( lexer ) ; var directives = parseDirectives ( lexer , true ) ; var types = parseUnionMemberTypes ( lexer ) ; if ( directives . length === 0 && types . length === 0 ) { throw unexpected ( lexer ) ; } return { kind : Kind . UNION_TYPE_EXTENSION , name : name , directives : directives , types : types , loc : loc ( lexer , start ) } ; }
UnionTypeExtension :
   - extend union Name Directives[Const]?
UnionTypeExtension : - extend union Name Directives [ Const ] ?