LineMapping

tcmts.loader.sourcemap.LineMapping · #ttwabpkw · type

One generated line's mapping: the source file and line it comes from (0-based), and its columns.

export interface LineMapping {
  line: number;
  source: string;
  sourceLine: number;
  /** generated column → source column, at the start of each token; [[0, 0]] when omitted */
  columns?: [number, number][];
}

used by