Skip to content

Commit 54fc447

Browse files
committed
Placeholder to disable FIR generation on method bodies
1 parent a690505 commit 54fc447

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
@@ -2084,6 +2084,8 @@ class LightTreeRawFirDeclarationBuilder(
20842084
): Pair<FirBlock?, FirContractDescription?> {
20852085
// TODO-HEADER-COMPILATION: Another option to produce empty methods
20862086
// TODO-HEADER-COMPILATION: is to make this function return nothing.
2087+
if (headerCompilationMode)
2088+
return null to null
20872089
return when {
20882090
blockNode != null -> {
20892091
val block = convertBlock(blockNode)

0 commit comments

Comments
 (0)