* Sets a given position as the current source location so generated code after this call * will be given this position in the sourcemap.
(prop: "start" | "end", loc: Loc)
| 344 | */ |
| 345 | |
| 346 | source(prop: "start" | "end", loc: Loc): void { |
| 347 | if (!this._map) return; |
| 348 | |
| 349 | // Since this is called extremely often, we reuse the same _sourcePosition |
| 350 | // object for the whole lifetime of the buffer. |
| 351 | this._normalizePosition(prop, loc, 0); |
| 352 | } |
| 353 | |
| 354 | sourceWithOffset( |
| 355 | prop: "start" | "end", |
no test coverage detected