interface Segment

One decoded mapping entry. All coordinates are 0-based.

import * as SourceMap from './source-map.ts';

const segment: SourceMap.Segment = { generatedCol: 0, sourceIndex: 0, sourceLine: 10, sourceCol: 2 };
// bundle column 0 maps to line 11, column 3 of `sources[0]` (1-based display)

Properties

0-based column in the generated (bundle) file.

Index into the source map's sources array.

sourceLine: number

0-based line in the original source file.

sourceCol: number

0-based column in the original source file.

Usage

import { type Segment } from "lib/utils/source-map.ts";