-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Re-enable LT2Fir function/method body elidation #5540
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Re-enable LT2Fir function/method body elidation #5540
Conversation
aviroop-123
commented
Oct 30, 2025
- Adds more tests for header compilation, specifically nested classes/functions.
- Fixes for nested function / method declaration.
- Re-enable LT2Fir function/method body removal & fix for test stub.
.../jetbrains/kotlin/fir/resolve/transformers/body/resolve/FirDeclarationsResolveTransformer.kt
Outdated
Show resolved
Hide resolved
...fir/resolve/src/org/jetbrains/kotlin/fir/resolve/transformers/FirStatusResolveTransformer.kt
Outdated
Show resolved
Hide resolved
compiler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/Context.kt
Show resolved
Hide resolved
...ler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/AbstractRawFirBuilder.kt
Show resolved
Hide resolved
...ler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/AbstractRawFirBuilder.kt
Show resolved
Hide resolved
...ler/fir/raw-fir/raw-fir.common/src/org/jetbrains/kotlin/fir/builder/AbstractRawFirBuilder.kt
Outdated
Show resolved
Hide resolved
...ee2fir/src/org/jetbrains/kotlin/fir/lightTree/converter/LightTreeRawFirDeclarationBuilder.kt
Outdated
Show resolved
Hide resolved
4a33595 to
27cd10b
Compare
27cd10b to
6fe35a1
Compare
compiler/fir/analysis-tests/testData/resolve/headerMode/enumClassDeclaration.fir.txt
Show resolved
Hide resolved
demiurg906
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make future review iterations simpler, could you please don't override existing commits, but instead create fixup! commits with changes regarding review comments? You can do it using git commit <target_commit> or with the IDEA interface.
Also please rebase your branch on top of the fresh master.
They will be automatically squashed with target commits before the merge.
| isLocal = false, | ||
| overriddenFunctions.map { it.status as FirResolvedDeclarationStatus }, | ||
| ) | ||
| // Once the modality is determined, we can remove the body. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This code is actually redundant and could be deleted.
inline status is not inheritable, so it checks basically the same things as the code in the raw fir builder.
…e inline functions. ^KT-78422
…'s a no-op. ^KT-78422
6fe35a1 to
f9a7533
Compare