Skip to content

Commit feda6bc

Browse files
committed
C#: Update expected test output.
1 parent d836871 commit feda6bc

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ constructors.cs:
2525
# 23| -1: [TypeMention] object
2626
# 23| 1: [Parameter] s
2727
# 23| -1: [TypeMention] string
28+
# 23| 4: [BlockStmt] {...}
2829
# 25| 5: [InstanceConstructor] C1
2930
#-----| 2: (Parameters)
3031
# 25| 0: [Parameter] o
@@ -44,3 +45,7 @@ constructors.cs:
4445
# 28| -1: [TypeMention] string
4546
# 28| 2: [Parameter] i
4647
# 28| -1: [TypeMention] int
48+
# 28| 3: [ConstructorInitializer] call to constructor C1
49+
# 28| 0: [ParameterAccess] access to parameter o
50+
# 28| 1: [ParameterAccess] access to parameter s
51+
# 28| 4: [BlockStmt] {...}

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

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,7 @@ Record.cs:
884884
# 27| -1: [TypeMention] string
885885
# 27| 1: [Parameter] LastName
886886
# 27| -1: [TypeMention] string
887+
# 27| 4: [BlockStmt] {...}
887888
# 27| 16: [Property] FirstName
888889
# 27| 3: [Getter] get_FirstName
889890
# 27| 4: [Setter] set_FirstName
@@ -913,6 +914,10 @@ Record.cs:
913914
# 29| -1: [TypeMention] string
914915
# 29| 2: [Parameter] Subject
915916
# 29| -1: [TypeMention] string
917+
# 30| 3: [ConstructorInitializer] call to constructor Person1
918+
# 30| 0: [ParameterAccess] access to parameter FirstName
919+
# 30| 1: [ParameterAccess] access to parameter LastName
920+
# 29| 4: [BlockStmt] {...}
916921
# 29| 17: [Property] Subject
917922
# 29| 3: [Getter] get_Subject
918923
# 29| 4: [Setter] set_Subject
@@ -937,6 +942,10 @@ Record.cs:
937942
# 32| -1: [TypeMention] string
938943
# 32| 2: [Parameter] Level
939944
# 32| -1: [TypeMention] int
945+
# 33| 3: [ConstructorInitializer] call to constructor Person1
946+
# 33| 0: [ParameterAccess] access to parameter FirstName
947+
# 33| 1: [ParameterAccess] access to parameter LastName
948+
# 32| 4: [BlockStmt] {...}
940949
# 32| 17: [Property] Level
941950
# 32| 3: [Getter] get_Level
942951
# 32| 4: [Setter] set_Level
@@ -957,6 +966,7 @@ Record.cs:
957966
#-----| 2: (Parameters)
958967
# 35| 0: [Parameter] Name
959968
# 35| -1: [TypeMention] string
969+
# 35| 4: [BlockStmt] {...}
960970
# 35| 16: [Property] Name
961971
# 35| 3: [Getter] get_Name
962972
# 35| 4: [Setter] set_Name
@@ -981,6 +991,9 @@ Record.cs:
981991
#-----| 2: (Parameters)
982992
# 41| 0: [Parameter] Name
983993
# 41| -1: [TypeMention] string
994+
# 41| 3: [ConstructorInitializer] call to constructor Pet
995+
# 41| 0: [ParameterAccess] access to parameter Name
996+
# 41| 4: [BlockStmt] {...}
984997
# 41| 15: [Property] EqualityContract
985998
# 41| 3: [Getter] get_EqualityContract
986999
# 43| 16: [Method] WagTail
@@ -1022,6 +1035,7 @@ Record.cs:
10221035
#-----| 2: (Parameters)
10231036
# 54| 0: [Parameter] A
10241037
# 54| -1: [TypeMention] string
1038+
# 54| 4: [BlockStmt] {...}
10251039
# 54| 16: [Property] A
10261040
# 54| 3: [Getter] get_A
10271041
# 54| 4: [Setter] set_A
@@ -1044,6 +1058,9 @@ Record.cs:
10441058
# 56| -1: [TypeMention] string
10451059
# 56| 1: [Parameter] B
10461060
# 56| -1: [TypeMention] string
1061+
# 56| 3: [ConstructorInitializer] call to constructor R1
1062+
# 56| 0: [ParameterAccess] access to parameter A
1063+
# 56| 4: [BlockStmt] {...}
10471064
# 56| 17: [Property] B
10481065
# 56| 3: [Getter] get_B
10491066
# 56| 4: [Setter] set_B

csharp/ql/test/library-tests/dataflow/tuples/DataFlowStep.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@
135135
| Tuples.cs:87:27:87:27 | SSA def(q) | Tuples.cs:91:18:91:18 | access to local variable q |
136136
| Tuples.cs:87:30:87:30 | SSA def(r) | Tuples.cs:90:18:90:18 | access to local variable r |
137137
| Tuples.cs:91:18:91:18 | access to local variable q | Tuples.cs:91:18:91:18 | (...) ... |
138+
| Tuples.cs:95:12:95:13 | this | Tuples.cs:95:22:95:22 | this |
139+
| Tuples.cs:95:22:95:22 | [post] this | Tuples.cs:95:29:95:29 | this |
140+
| Tuples.cs:95:22:95:22 | this | Tuples.cs:95:29:95:29 | this |
138141
| Tuples.cs:99:13:99:33 | SSA def(o) | Tuples.cs:100:24:100:24 | access to local variable o |
139142
| Tuples.cs:99:17:99:33 | call to method Source<String> | Tuples.cs:99:13:99:33 | SSA def(o) |
140143
| Tuples.cs:99:32:99:32 | 9 | Tuples.cs:99:32:99:32 | (...) ... |

csharp/ql/test/library-tests/dataflow/tuples/PrintAst.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,7 @@ Tuples.cs:
369369
# 95| -1: [TypeMention] string
370370
# 95| 1: [Parameter] j
371371
# 95| -1: [TypeMention] int
372+
# 95| 4: [BlockStmt] {...}
372373
# 95| 16: [Property] i
373374
# 95| 3: [Getter] get_i
374375
# 95| 4: [Setter] set_i

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2411,6 +2411,7 @@ expressions.cs:
24112411
#-----| 2: (Parameters)
24122412
# 518| 0: [Parameter] oc1
24132413
# 518| -1: [TypeMention] object
2414+
# 518| 4: [BlockStmt] {...}
24142415
# 520| 23: [Class] ClassC2
24152416
#-----| 3: (Base types)
24162417
# 520| 0: [TypeMention] ClassC1
@@ -2420,3 +2421,4 @@ expressions.cs:
24202421
# 520| -1: [TypeMention] object
24212422
# 520| 3: [ConstructorInitializer] call to constructor ClassC1
24222423
# 520| 0: [ParameterAccess] access to parameter oc2
2424+
# 520| 4: [BlockStmt] {...}

0 commit comments

Comments
 (0)