function highlightSourceAtLocation(source, location) {
  var line = location.line;
  var lineOffset = source.locationOffset.line - 1;
  var columnOffset = getColumnOffset(source, location);
  var contextLine = line + lineOffset;
  var prevLineNum = (contextLine - 1).toString();
  var lineNum = contextLine.toString();
  var nextLineNum = (contextLine + 1).toString();
  var padLen = nextLineNum.length;
  var lines = source.body.split(/\r\n|[\n\r]/g);
  lines[0] = whitespace(source.locationOffset.column - 1) + lines[0];
  return (line >= 2 ? lpad(padLen, prevLineNum) + ': ' + lines[line - 2] + '\n' : '') + lpad(padLen, lineNum) + ': ' + lines[line - 1] + '\n' + whitespace(2 + padLen + location.column - 1 + columnOffset) + '^\n' + (line < lines.length ? lpad(padLen, nextLineNum) + ': ' + lines[line] + '\n' : '');
}
/**
 * Render a helpful description of the location of the error in the GraphQL
 * Source document.
 */
Render a helpful description of the location of the error in the GraphQL
Source document.
Render a helpful description of the location of the error in the GraphQL Source document .
function highlightSourceAtLocation(source, location) {
  var line = location.line;
  var lineOffset = source.locationOffset.line - 1;
  var columnOffset = getColumnOffset(source, location);
  var contextLine = line + lineOffset;
  var prevLineNum = (contextLine - 1).toString();
  var lineNum = contextLine.toString();
  var nextLineNum = (contextLine + 1).toString();
  var padLen = nextLineNum.length;
  var lines = source.body.split(/\r\n|[\n\r]/g);
  lines[0] = whitespace(source.locationOffset.column - 1) + lines[0];
  return (line >= 2 ? lpad(padLen, prevLineNum) + ': ' + lines[line - 2] + '\n' : '') + lpad(padLen, lineNum) + ': ' + lines[line - 1] + '\n' + whitespace(2 + padLen + location.column - 1 + columnOffset) + '^\n' + (line < lines.length ? lpad(padLen, nextLineNum) + ': ' + lines[line] + '\n' : '');
}
function highlightSourceAtLocation ( source , location ) { var line = location . line ; var lineOffset = source . locationOffset . line - 1 ; var columnOffset = getColumnOffset ( source , location ) ; var contextLine = line + lineOffset ; var prevLineNum = ( contextLine - 1 ) . toString ( ) ; var lineNum = contextLine . toString ( ) ; var nextLineNum = ( contextLine + 1 ) . toString ( ) ; var padLen = nextLineNum . length ; var lines = source . body . split ( / \r\n|[\n\r] / g ) ; lines [ 0 ] = whitespace ( source . locationOffset . column - 1 ) + lines [ 0 ] ; return ( line >= 2 ? lpad ( padLen , prevLineNum ) + ': ' + lines [ line - 2 ] + '\n' : '' ) + lpad ( padLen , lineNum ) + ': ' + lines [ line - 1 ] + '\n' + whitespace ( 2 + padLen + location . column - 1 + columnOffset ) + '^\n' + ( line < lines . length ? lpad ( padLen , nextLineNum ) + ': ' + lines [ line ] + '\n' : '' ) ; }
Render a helpful description of the location of the error in the GraphQL
 Source document.
Render a helpful description of the location of the error in the GraphQL Source document .