Skip to main content
method Module.SourceMap.prototype.findOrigin
SourceMap.prototype.findOrigin(
lineNumber: number,
columnNumber: number,
): SourceOrigin | { }
Deprecated

Given a 1-indexed lineNumber and columnNumber from a call site in the generated source, find the corresponding call site location in the original source.

If the lineNumber and columnNumber provided are not found in any source map, then an empty object is returned.

Parameters

lineNumber: number

The 1-indexed line number of the call site in the generated source

columnNumber: number

The 1-indexed column number of the call site in the generated source

Return Type

Back to top