mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Avoid extracting needless obinit methods where we're only extracting a class' outline.
This commit is contained in:
@@ -442,7 +442,7 @@ open class KotlinFileExtractor(
|
||||
addModifiers(instance.id, "public", "static", "final")
|
||||
tw.writeClass_object(id.cast<DbClass>(), instance.id)
|
||||
}
|
||||
if (needsObinitFunction(c)) {
|
||||
if (extractFunctionBodies && needsObinitFunction(c)) {
|
||||
extractObinitFunction(c, id)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user