Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0b4cf6e

Browse files
tamasvajkigfoo
authored andcommitted
Adjust extractEnclosingClass extraction
1 parent 44c8249 commit 0b4cf6e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

java/kotlin-extractor/src/main/kotlin/KotlinFileExtractor.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,10 @@ open class KotlinFileExtractor(
434434

435435
break
436436
} else if (parent is IrFile) {
437+
if (innerDeclaration is IrClass) {
438+
// We don't have to extract file class containers for classes
439+
break
440+
}
437441
if (this.filePath != parent.path) {
438442
logger.error("Unexpected file parent found")
439443
}

0 commit comments

Comments
 (0)