  }
}

function toApiLocation(source: types.SourceLocation, lineOffset: number): Location {
  return {
    start: toPosition(source.start, lineOffset),
    end: toPosition(source.end, lineOffset),
  };
}

function toPosition(source: Position, lineOffset: number): Position {
  return {
    column: source.column,