You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
618 B
15 lines
618 B
import type { SourceMapSegmentObject } from './types'; |
|
/** |
|
* A "leaf" node in the sourcemap tree, representing an original, unmodified |
|
* source file. Recursive segment tracing ends at the `OriginalSource`. |
|
*/ |
|
export default class OriginalSource { |
|
content: string | null; |
|
source: string; |
|
constructor(source: string, content: string | null); |
|
/** |
|
* Tracing a `SourceMapSegment` ends when we get to an `OriginalSource`, |
|
* meaning this line/column location originated from this source file. |
|
*/ |
|
originalPositionFor(line: number, column: number, name: string): SourceMapSegmentObject; |
|
}
|
|
|