mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Don't extract static init when the class already contains an anonymous init
This commit is contained in:
committed by
Ian Lynagh
parent
3920b64d62
commit
1926bef050
@@ -99,7 +99,8 @@ open class KotlinFileExtractor(
|
||||
if (isExternalDeclaration(declaration)) {
|
||||
extractExternalClassLater(declaration)
|
||||
} else {
|
||||
extractClassSource(declaration, true, true)
|
||||
val extractStaticInit = declaration.declarations.none { it is IrAnonymousInitializer }
|
||||
extractClassSource(declaration, true, extractStaticInit)
|
||||
}
|
||||
}
|
||||
is IrFunction -> {
|
||||
|
||||
Reference in New Issue
Block a user