sample-proxies/graphql-sample/graphql-proxy/apiproxy/resources/jsc/graphql.jsc.js
/**
     * If the next token is of the given kind, return that token after advancing
     * the lexer. Otherwise, do not change the parser state and throw an error.
     */
If the next token is of the given kind, return that token after advancing
the lexer. Otherwise, do not change the parser state and throw an error.
If the next token is of the given kind return that token after advancing the lexer . Otherwise do not change the parser state and throw an error .
function expect(lexer, kind) {
      var token = lexer.token;
      if (token.kind === kind) {
        lexer.advance();
        return token;
      }
      throw syntaxError(lexer.source, token.start, "Expected ".concat(kind, ", found ").concat(getTokenDesc(token)));
    }
function expect ( lexer , kind ) { var token = lexer . token ; if ( token . kind === kind ) { lexer . advance ( ) ; return token ; } throw syntaxError ( lexer . source , token . start , "Expected " . concat ( kind , ", found " ) . concat ( getTokenDesc ( token ) ) ) ; }
If the next token is of the given kind, return that token after advancing
 the lexer.
If the next token is of the given kind return that token after advancing the lexer .