sample-proxies/graphql-sample/graphql-proxy/apiproxy/resources/jsc/graphql.jsc.js
/**
     * Reads from body starting at startPosition until it finds a non-whitespace
     * character, then returns the position of that character for lexing.
     */
Reads from body starting at startPosition until it finds a non-whitespace
character, then returns the position of that character for lexing.
Reads from body starting at startPosition until it finds a non - whitespace character then returns the position of that character for lexing .
function positionAfterWhitespace(body, startPosition, lexer) {
      var bodyLength = body.length;
      var position = startPosition;
      while (position < bodyLength) {
        var code = charCodeAt.call(body, position); 
        if (code === 9 || code === 32 || code === 44 || code === 0xfeff) {
          ++position;
        } else if (code === 10) {
          ++position;
          ++lexer.line;
          lexer.lineStart = position;
        } else if (code === 13) {
          if (charCodeAt.call(body, position + 1) === 10) {
            position += 2;
          } else {
            ++position;
          }
          ++lexer.line;
          lexer.lineStart = position;
        } else {
          break;
        }
      }
      return position;
    }
function positionAfterWhitespace ( body , startPosition , lexer ) { var bodyLength = body . length ; var position = startPosition ; while ( position < bodyLength ) { var code = charCodeAt . call ( body , position ) ; if ( code === 9 || code === 32 || code === 44 || code === 0xfeff ) { ++ position ; } else if ( code === 10 ) { ++ position ; ++ lexer . line ; lexer . lineStart = position ; } else if ( code === 13 ) { if ( charCodeAt . call ( body , position + 1 ) === 10 ) { position += 2 ; } else { ++ position ; } ++ lexer . line ; lexer . lineStart = position ; } else { break ; } } return position ; }
Reads from body starting at startPosition until it finds a non-whitespace
 character, then returns the position of that character for lexing.
Reads from body starting at startPosition until it finds a non - whitespace character then returns the position of that character for lexing .
// tab | space | comma | BOM // new line // carriage return