sourceMap.findOrigin(lineNumber, columnNumber)
给定生成源代码中调用位置的以1为起始的行号和列号,找到原始源代码中对应的调用位置。
🌐 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.
如果提供的 lineNumber 和 columnNumber 在任何源映射中都未找到,则返回一个空对象。否则,返回的对象包含以下键:
🌐 If the lineNumber and columnNumber provided are not found in any source map, then an empty object is returned. Otherwise, the returned object contains the following keys:
- 名称:<string> | <undefined> 源地图中范围的名称(如果提供了的话)
- fileName: <string> 原始来源的文件名,如 SourceMap 中所报告的
- lineNumber: <number> 原始源代码中对应调用位置的以1为起始的行号
- columnNumber: <number> 原始源代码中对应调用位置的以1为起始的列号