mirror of
https://github.com/github/codeql.git
synced 2025-12-22 19:56:32 +01:00
Extract final modifier on local variables
This commit is contained in:
@@ -973,9 +973,12 @@ open class KotlinFileExtractor(
|
||||
tw.writeCallableEnclosingExpr(exprId, callable)
|
||||
tw.writeStatementEnclosingExpr(exprId, enclosingStmt)
|
||||
val i = v.initializer
|
||||
if(i != null) {
|
||||
if (i != null) {
|
||||
extractExpressionExpr(i, callable, exprId, 0, enclosingStmt)
|
||||
}
|
||||
if (!v.isVar) {
|
||||
addModifiers(varId, "final")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user