minor: fix a typo leading to the wrong lines count with LT

This commit is contained in:
Ilya Chernikov
2023-01-20 16:38:56 +01:00
committed by Space Team
parent 47f6cb663e
commit 61e39f2c31
@@ -32,7 +32,7 @@ fun FirSession.buildFirViaLightTree(
it.readSourceFileWithMapping() it.readSourceFileWithMapping()
} }
if (shouldCountLines) { if (shouldCountLines) {
linesCount += linesMapping.lastOffset linesCount += linesMapping.linesCount
} }
builder.buildFirFile(code, file, linesMapping).also { firFile -> builder.buildFirFile(code, file, linesMapping).also { firFile ->
firProvider.recordFile(firFile) firProvider.recordFile(firFile)