Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

SourceMapConsumer

class SourceMapConsumer {
constructor(rawSourceMap: RawSourceMap);
allGeneratedPositionsFor(originalPosition: MappedPosition): Position[];
computeColumnSpans(): void;
eachMapping(
callback: (mapping: MappingItem) => void,
context?: any,
order?: number,
): void;
generatedPositionFor(originalPosition: SourceFindPosition): LineRange;
hasContentsOfAllSources(): boolean;
originalPositionFor(generatedPosition: FindPosition): MappedPosition;
sourceContentFor(source: string, returnNullOnMissing?: boolean): string;
 
static GENERATED_ORDER: number;
static GREATEST_LOWER_BOUND: number;
static LEAST_UPPER_BOUND: number;
static ORIGINAL_ORDER: number;
}

§Constructors

§
new SourceMapConsumer(rawSourceMap: RawSourceMap)
[src]

§Methods

§
allGeneratedPositionsFor(originalPosition: MappedPosition): Position[]
[src]
§
computeColumnSpans(): void
[src]
§
eachMapping(callback: (mapping: MappingItem) => void, context?: any, order?: number): void
[src]
§
generatedPositionFor(originalPosition: SourceFindPosition): LineRange
[src]
§
hasContentsOfAllSources(): boolean
[src]
§
originalPositionFor(generatedPosition: FindPosition): MappedPosition
[src]
§
sourceContentFor(source: string, returnNullOnMissing?: boolean): string
[src]

§Static Properties

§
GENERATED_ORDER: number
[src]
§
GREATEST_LOWER_BOUND: number
[src]
§
LEAST_UPPER_BOUND: number
[src]
§
ORIGINAL_ORDER: number
[src]