code: function loc(start, end) {
    if (!yy.options.captureLocations) {
      return null;
    }
  
    return {
      startOffset: start.startOffset,
      endOffset: end.endOffset,
      startLine: start.startLine,
      endLine: end.endLine,
      startColumn: start.startColumn,
      endColumn: end.endColumn,
    };
  }
docs: Creates location node.