MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / printInlineSourceMap

Method printInlineSourceMap

src/LuaPrinter.ts:201–206  ·  view source on GitHub ↗
(sourceMap: SourceMapGenerator)

Source from the content-addressed store, hash-verified

199 }
200
201 private printInlineSourceMap(sourceMap: SourceMapGenerator): string {
202 const map = sourceMap.toString();
203 const base64Map = Buffer.from(map).toString("base64");
204
205 return `--# sourceMappingURL=data:application/json;base64,${base64Map}\n`;
206 }
207
208 private printStackTraceOverride(rootNode: SourceNode): string {
209 let currentLine = 1;

Callers 1

printMethod · 0.95

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected