Offsets a location that came from source code, to where it appears in the runtime script
(obj: T)
| 133 | } |
| 134 | /** Offsets a location that came from source code, to where it appears in the runtime script */ |
| 135 | public offsetSourceToScript<T extends { lineNumber: number; columnNumber: number }>(obj: T): T { |
| 136 | if (this.runtimeScriptOffset) { |
| 137 | return { |
| 138 | ...obj, |
| 139 | lineNumber: obj.lineNumber + this.runtimeScriptOffset.lineOffset, |
| 140 | columnNumber: obj.columnNumber + this.runtimeScriptOffset.columnOffset, |
| 141 | }; |
| 142 | } |
| 143 | |
| 144 | return obj; |
| 145 | } |
| 146 | |
| 147 | public async equalsDap(s: Dap.Source) { |
| 148 | const existingAbsolutePath = await this._existingAbsolutePath; |
no outgoing calls
no test coverage detected