diff --git a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/buildFir.kt b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/buildFir.kt index 1d5cdaaf19c..0f5697580ff 100644 --- a/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/buildFir.kt +++ b/compiler/fir/entrypoint/src/org/jetbrains/kotlin/fir/pipeline/buildFir.kt @@ -32,7 +32,7 @@ fun FirSession.buildFirViaLightTree( it.readSourceFileWithMapping() } if (shouldCountLines) { - linesCount += linesMapping.lastOffset + linesCount += linesMapping.linesCount } builder.buildFirFile(code, file, linesMapping).also { firFile -> firProvider.recordFile(firFile)