mirror of
https://github.com/github/codeql.git
synced 2026-04-28 10:15:14 +02:00
Kotlin: Extract lateinit modifier
This commit is contained in:
@@ -1141,6 +1141,10 @@ open class KotlinFileExtractor(
|
||||
}
|
||||
|
||||
extractVisibility(p, id, p.visibility)
|
||||
|
||||
if (p.isLateinit) {
|
||||
addModifiers(id, "lateinit")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1291,6 +1295,9 @@ open class KotlinFileExtractor(
|
||||
if (!v.isVar) {
|
||||
addModifiers(varId, "final")
|
||||
}
|
||||
if (v.isLateinit) {
|
||||
addModifiers(varId, "lateinit")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user