mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
Adjust extractEnclosingClass extraction
This commit is contained in:
@@ -434,6 +434,10 @@ open class KotlinFileExtractor(
|
||||
|
||||
break
|
||||
} else if (parent is IrFile) {
|
||||
if (innerDeclaration is IrClass) {
|
||||
// We don't have to extract file class containers for classes
|
||||
break
|
||||
}
|
||||
if (this.filePath != parent.path) {
|
||||
logger.error("Unexpected file parent found")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user