function loc(lexer, startToken) {
  if (!lexer.options.noLocation) {
    return new Loc(startToken, lexer.lastToken, lexer.source);
  }
}
Returns a location object, used to identify the place in
the source that created a given parsed object.