Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 05caffc

Browse files
committed
Update printast expectation
1 parent 30c5885 commit 05caffc

1 file changed

Lines changed: 28 additions & 20 deletions

File tree

java/ql/test/library-tests/printAst/PrintAst.expected

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -122,41 +122,45 @@ A.java:
122122
# 53| 2: [SwitchStmt] switch (...)
123123
# 53| -1: [VarAccess] thing
124124
# 54| 0: [PatternCase] case T t ...
125-
# 54| -2: [TypeAccess] String
126125
# 54| -1: [ExprStmt] <Expr>;
127-
# 54| 0: [MethodAccess] println(...)
126+
# 54| 0: [MethodCall] println(...)
128127
# 54| -1: [VarAccess] System.out
129128
# 54| -1: [TypeAccess] System
130129
# 54| 0: [VarAccess] s
131-
# 54| 0: [LocalVariableDeclExpr] s
130+
#-----| 0: (Single Local Variable Declaration)
131+
# 54| 0: [TypeAccess] String
132+
# 54| 1: [LocalVariableDeclExpr] s
132133
# 55| 1: [PatternCase] case T t ...
133-
# 55| -2: [TypeAccess] Integer
134134
# 55| -1: [ExprStmt] <Expr>;
135-
# 55| 0: [MethodAccess] println(...)
135+
# 55| 0: [MethodCall] println(...)
136136
# 55| -1: [VarAccess] System.out
137137
# 55| -1: [TypeAccess] System
138138
# 55| 0: [AddExpr] ... + ...
139139
# 55| 0: [StringLiteral] "An integer: "
140140
# 55| 1: [VarAccess] i
141-
# 55| 0: [LocalVariableDeclExpr] i
141+
#-----| 0: (Single Local Variable Declaration)
142+
# 55| 0: [TypeAccess] Integer
143+
# 55| 1: [LocalVariableDeclExpr] i
142144
# 56| 2: [DefaultCase] default
143145
# 56| -1: [BlockStmt] { ... }
144146
# 58| 3: [SwitchStmt] switch (...)
145147
# 58| -1: [VarAccess] thing
146148
# 59| 0: [PatternCase] case T t ...
147-
# 59| -2: [TypeAccess] String
148-
# 59| 0: [LocalVariableDeclExpr] s
149+
#-----| 0: (Single Local Variable Declaration)
150+
# 59| 0: [TypeAccess] String
151+
# 59| 1: [LocalVariableDeclExpr] s
149152
# 60| 1: [ExprStmt] <Expr>;
150-
# 60| 0: [MethodAccess] println(...)
153+
# 60| 0: [MethodCall] println(...)
151154
# 60| -1: [VarAccess] System.out
152155
# 60| -1: [TypeAccess] System
153156
# 60| 0: [VarAccess] s
154157
# 61| 2: [BreakStmt] break
155158
# 62| 3: [PatternCase] case T t ...
156-
# 62| -2: [TypeAccess] Integer
157-
# 62| 0: [LocalVariableDeclExpr] i
159+
#-----| 0: (Single Local Variable Declaration)
160+
# 62| 0: [TypeAccess] Integer
161+
# 62| 1: [LocalVariableDeclExpr] i
158162
# 63| 4: [ExprStmt] <Expr>;
159-
# 63| 0: [MethodAccess] println(...)
163+
# 63| 0: [MethodCall] println(...)
160164
# 63| -1: [VarAccess] System.out
161165
# 63| -1: [TypeAccess] System
162166
# 63| 0: [AddExpr] ... + ...
@@ -170,29 +174,33 @@ A.java:
170174
# 68| 0: [SwitchExpr] switch (...)
171175
# 68| -1: [VarAccess] thing
172176
# 69| 0: [PatternCase] case T t ...
173-
# 69| -2: [TypeAccess] String
174177
# 69| -1: [VarAccess] s
175-
# 69| 0: [LocalVariableDeclExpr] s
178+
#-----| 0: (Single Local Variable Declaration)
179+
# 69| 0: [TypeAccess] String
180+
# 69| 1: [LocalVariableDeclExpr] s
176181
# 70| 1: [PatternCase] case T t ...
177-
# 70| -2: [TypeAccess] Integer
178182
# 70| -1: [AddExpr] ... + ...
179183
# 70| 0: [StringLiteral] "An integer: "
180184
# 70| 1: [VarAccess] i
181-
# 70| 0: [LocalVariableDeclExpr] i
185+
#-----| 0: (Single Local Variable Declaration)
186+
# 70| 0: [TypeAccess] Integer
187+
# 70| 1: [LocalVariableDeclExpr] i
182188
# 71| 2: [DefaultCase] default
183189
# 71| -1: [StringLiteral] "Something else"
184190
# 73| 5: [LocalVariableDeclStmt] var ...;
185191
# 73| 1: [LocalVariableDeclExpr] thingAsString2
186192
# 73| 0: [SwitchExpr] switch (...)
187193
# 73| -1: [VarAccess] thing
188194
# 74| 0: [PatternCase] case T t ...
189-
# 74| -2: [TypeAccess] String
190-
# 74| 0: [LocalVariableDeclExpr] s
195+
#-----| 0: (Single Local Variable Declaration)
196+
# 74| 0: [TypeAccess] String
197+
# 74| 1: [LocalVariableDeclExpr] s
191198
# 75| 1: [YieldStmt] yield ...
192199
# 75| 0: [VarAccess] s
193200
# 76| 2: [PatternCase] case T t ...
194-
# 76| -2: [TypeAccess] Integer
195-
# 76| 0: [LocalVariableDeclExpr] i
201+
#-----| 0: (Single Local Variable Declaration)
202+
# 76| 0: [TypeAccess] Integer
203+
# 76| 1: [LocalVariableDeclExpr] i
196204
# 77| 3: [YieldStmt] yield ...
197205
# 77| 0: [AddExpr] ... + ...
198206
# 77| 0: [StringLiteral] "An integer: "

0 commit comments

Comments
 (0)