We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08e3431 commit 540a2a6Copy full SHA for 540a2a6
java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt
@@ -92,7 +92,7 @@ open class KotlinFileExtractor(
92
93
file.declarations.forEach {
94
extractDeclaration(it, extractPrivateMembers = true, extractFunctionBodies = true)
95
- if (it !is IrClass) {
+ if (it is IrProperty || it is IrField || it is IrFunction) {
96
externalClassExtractor.noteElementExtractedFromSource(it, getTrapFileSignature(it))
97
}
98
@@ -523,7 +523,7 @@ open class KotlinFileExtractor(
523
524
linesOfCode?.linesOfCodeInDeclaration(c, id)
525
526
- if (extractFunctionBodies)
+ if (extractFunctionBodies && !c.isAnonymousObject && !c.isLocal)
527
externalClassExtractor.noteElementExtractedFromSource(c)
528
529
return id
0 commit comments