mirror of
https://github.com/github/codeql.git
synced 2026-04-23 07:45:17 +02:00
Pretty-print 'var' statements
This commit is contained in:
@@ -929,6 +929,8 @@ private class PpAssertStmt extends PpAst, AssertStmt {
|
||||
|
||||
private class PpLocalVariableDeclStmt extends PpAst, LocalVariableDeclStmt {
|
||||
override string getPart(int i) {
|
||||
i = 0 and not exists(this.getAVariable().getTypeAccess()) and result = "var"
|
||||
or
|
||||
i = 1 and result = " "
|
||||
or
|
||||
exists(int v | v > 1 and i = 2 * v - 1 and result = ", " and v = this.getAVariableIndex())
|
||||
|
||||
Reference in New Issue
Block a user