mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Extract externally defined inner classes only once
This commit is contained in:
@@ -34,7 +34,13 @@ open class KotlinFileExtractor(
|
||||
|
||||
fun extractDeclaration(declaration: IrDeclaration, parentId: Label<out DbReftype>) {
|
||||
when (declaration) {
|
||||
is IrClass -> extractClassSource(declaration)
|
||||
is IrClass -> {
|
||||
if (isExternalDeclaration(declaration)) {
|
||||
extractExternalClassLater(declaration)
|
||||
} else {
|
||||
extractClassSource(declaration)
|
||||
}
|
||||
}
|
||||
is IrFunction -> extractFunctionIfReal(declaration, parentId)
|
||||
is IrAnonymousInitializer -> {
|
||||
// Leaving this intentionally empty. init blocks are extracted during class extraction.
|
||||
|
||||
Reference in New Issue
Block a user