Skip to content

Commit 1ffa15e

Browse files
committed
C#: Update expected test output
1 parent 249e431 commit 1ffa15e

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

csharp/ql/test/library-tests/csharp9/PrintAst.expected

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ BinaryPattern.cs:
8383
# 10| 0: [VariablePatternExpr] Object o
8484
# 10| 0: [TypeMention] object
8585
# 10| 1: [RecursivePatternExpr] { ... }
86-
# 10| 0: [LocalVariableDeclExpr] BinaryPattern u
87-
# 10| 1: [TypeAccess] access to type BinaryPattern
86+
# 10| 0: [VariablePatternExpr] BinaryPattern u
87+
# 10| 1: [TypeAccessPatternExpr] access to type BinaryPattern
8888
# 10| 0: [TypeMention] BinaryPattern
8989
# 10| 3: [PropertyPatternExpr] { ... }
9090
# 10| 0: [ConstantPatternExpr,IntLiteral,LabeledPatternExpr] 1
@@ -608,14 +608,14 @@ ParenthesizedPattern.cs:
608608
# 9| 0: [IsExpr] ... is ...
609609
# 9| 0: [ParameterAccess] access to parameter o
610610
# 9| 1: [RecursivePatternExpr] { ... }
611-
# 9| 0: [LocalVariableDeclExpr] Object p1
611+
# 9| 0: [VariablePatternExpr] Object p1
612612
# 9| 3: [PropertyPatternExpr] { ... }
613613
# 10| 1: [BlockStmt] {...}
614614
# 13| 1: [IfStmt] if (...) ...
615615
# 13| 0: [IsExpr] ... is ...
616616
# 13| 0: [ParameterAccess] access to parameter o
617617
# 13| 1: [RecursivePatternExpr] { ... }
618-
# 13| 0: [LocalVariableDeclExpr] Object p2
618+
# 13| 0: [VariablePatternExpr] Object p2
619619
# 13| 3: [PropertyPatternExpr] { ... }
620620
# 14| 1: [BlockStmt] {...}
621621
# 19| 6: [Method] M2
@@ -1039,8 +1039,8 @@ UnaryPattern.cs:
10391039
# 12| 0: [ParameterAccess] access to parameter c
10401040
# 12| 1: [NotPatternExpr] not ...
10411041
# 12| 0: [RecursivePatternExpr] { ... }
1042-
# 12| 0: [LocalVariableDeclExpr] UnaryPattern u
1043-
# 12| 1: [TypeAccess] access to type UnaryPattern
1042+
# 12| 0: [VariablePatternExpr] UnaryPattern u
1043+
# 12| 1: [TypeAccessPatternExpr] access to type UnaryPattern
10441044
# 12| 0: [TypeMention] UnaryPattern
10451045
# 12| 3: [PropertyPatternExpr] { ... }
10461046
# 12| 0: [ConstantPatternExpr,IntLiteral,LabeledPatternExpr] 1

csharp/ql/test/library-tests/csharp9/typePattern.expected

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
| BinaryPattern.cs:10:14:10:21 | Object o | Object |
2+
| BinaryPattern.cs:10:27:10:39 | access to type BinaryPattern | BinaryPattern |
3+
| BinaryPattern.cs:10:27:10:51 | BinaryPattern u | BinaryPattern |
24
| BinaryPattern.cs:12:14:12:21 | Object o | Object |
35
| BinaryPattern.cs:12:27:12:41 | BinaryPattern u | BinaryPattern |
6+
| ParenthesizedPattern.cs:9:18:9:22 | Object p1 | Object |
7+
| ParenthesizedPattern.cs:13:19:13:23 | Object p2 | Object |
48
| ParenthesizedPattern.cs:25:13:25:15 | T t | T |
59
| ParenthesizedPattern.cs:26:14:26:22 | Object o1 | Object |
610
| ParenthesizedPattern.cs:27:14:27:19 | access to type String | String |
@@ -10,3 +14,5 @@
1014
| TypePattern.cs:12:13:12:20 | Double d | Double |
1115
| TypePattern.cs:13:13:13:25 | access to type String | String |
1216
| TypePattern.cs:14:13:14:27 | Object o | Object |
17+
| UnaryPattern.cs:12:18:12:29 | access to type UnaryPattern | UnaryPattern |
18+
| UnaryPattern.cs:12:18:12:41 | UnaryPattern u | UnaryPattern |

0 commit comments

Comments
 (0)