mirror of
https://github.com/github/codeql.git
synced 2025-12-22 11:46:32 +01:00
Mark the Companion field as static
This commit is contained in:
@@ -514,6 +514,9 @@ open class KotlinFileExtractor(
|
||||
addModifiers(instance.id, "public", "static", "final")
|
||||
tw.writeClass_object(id.cast<DbClass>(), instance.id)
|
||||
}
|
||||
if (c.isObject) {
|
||||
addModifiers(id, "static")
|
||||
}
|
||||
if (extractFunctionBodies && needsObinitFunction(c)) {
|
||||
extractObinitFunction(c, id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user