Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Latest
class SourceMapConsumer
import { SourceMapConsumer } from "https://deno.land/x/postcss@8.4.16/lib/source_map.ts";

Constructors

new
SourceMapConsumer(rawSourceMap: RawSourceMap)

Methods

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

Static Properties

GENERATED_ORDER: number
GREATEST_LOWER_BOUND: number
LEAST_UPPER_BOUND: number
ORIGINAL_ORDER: number