Skip to main content
Module.SourceMap.prototype.findOrigin - node__module.d.ts - Node documentation
method Module.SourceMap.prototype.findOrigin

Usage in Deno

```typescript import { Module } from "node:node__module.d.ts"; ```
SourceMap.prototype.findOrigin(
lineNumber: number,
columnNumber: number,
): SourceOrigin | { }
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