mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Only extract anonymous init blocks in an instance initializer context
This commit is contained in:
committed by
Ian Lynagh
parent
a317dc4246
commit
e21a60bb4b
@@ -625,7 +625,7 @@ open class KotlinFileExtractor(
|
||||
extractFieldInitializer(decl)
|
||||
}
|
||||
is IrAnonymousInitializer -> {
|
||||
if (decl.isStatic) {
|
||||
if (decl.isStatic != extractStaticInitializers) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user