Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/source_map/mod.js>SourceMapConsumer#eachMapping

Port of mozilla / source-map to deno.
Latest
method SourceMapConsumer.prototype.eachMapping
import { SourceMapConsumer } from "https://deno.land/x/source_map@0.8.0-beta.1/mod.js";

Iterate over each mapping between an original source/line/column and a generated line/column in this source map.

Parameters

aCallback

aCallback The function that is called with each mapping.

aContext

aContext Optional. If specified, this object will be the value of this every time that aCallback is called.

aOrder

Either SourceMapConsumer.GENERATED_ORDER or SourceMapConsumer.ORIGINAL_ORDER. Specifies whether you want to iterate over the mappings sorted by the generated file's line/column order or the original's source/line/column order, respectively. Defaults to SourceMapConsumer.GENERATED_ORDER.