[Sourcemap] Introduce getCurrentColumn and stop using TextOutput directly

The general goal is remove dependency on TextOutput and
make it simpler to use for wasm backend.
This commit is contained in:
Zalim Bashorov
2022-12-05 16:18:36 +01:00
committed by Space Team
parent e34d3d09bc
commit fb4dcc6a6a
6 changed files with 11 additions and 8 deletions
@@ -117,7 +117,7 @@ class DeadCodeElimination(
val sourceMapFile = File(file.outputPath + ".map")
val textOutput = TextOutputImpl()
val outputFile = File(file.outputPath)
val sourceMapBuilder = SourceMap3Builder(outputFile, textOutput, "")
val sourceMapBuilder = SourceMap3Builder(outputFile, textOutput::getColumn, "")
val inputFile = File(file.resource.name)
val sourceBaseDir = if (inputFile.exists()) inputFile.parentFile else File(".")