Skip to content

Commit 7a11ef8

Browse files
committed
Placeholder to disable FIR generation on method bodies
1 parent 226fa64 commit 7a11ef8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler/fir/raw-fir/light-tree2fir/src/org/jetbrains/kotlin/fir/lightTree/converter/LightTreeRawFirDeclarationBuilder.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2108,6 +2108,8 @@ class LightTreeRawFirDeclarationBuilder(
21082108
): Pair<FirBlock?, FirContractDescription?> {
21092109
// TODO-HEADER-COMPILATION: Another option to produce empty methods
21102110
// TODO-HEADER-COMPILATION: is to make this function return nothing.
2111+
if (headerCompilationMode)
2112+
return null to null
21112113
return when {
21122114
blockNode != null -> {
21132115
val block = convertBlock(blockNode)

0 commit comments

Comments
 (0)