Skip to content

Commit ca0f73b

Browse files
committed
C#: Update expected test output.
1 parent 198f6e4 commit ca0f73b

File tree

6 files changed

+60
-37
lines changed

6 files changed

+60
-37
lines changed

csharp/ql/test/library-tests/dispatch/CallGraph.expected

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@
262262
| ViableCallable.cs:609:17:609:23 | Run1`1 | ViableCallable.cs:601:21:601:21 | M |
263263
| ViableCallable.cs:615:17:615:23 | Run2`1 | ViableCallable.cs:601:21:601:21 | M |
264264
| ViableCallable.cs:615:17:615:23 | Run2`1 | ViableCallable.cs:606:21:606:21 | M |
265-
| ViableCallable.cs:638:17:638:20 | Run1 | ViableCallable.cs:626:42:626:44 | get_Property |
266-
| ViableCallable.cs:638:17:638:20 | Run1 | ViableCallable.cs:626:47:626:49 | set_Property |
267-
| ViableCallable.cs:638:17:638:20 | Run1 | ViableCallable.cs:628:49:628:51 | get_Item |
268-
| ViableCallable.cs:638:17:638:20 | Run1 | ViableCallable.cs:628:54:628:56 | set_Item |
265+
| ViableCallable.cs:638:17:638:20 | Run1 | ViableCallable.cs:633:42:633:44 | get_Property |
266+
| ViableCallable.cs:638:17:638:20 | Run1 | ViableCallable.cs:633:63:633:65 | set_Property |
267+
| ViableCallable.cs:638:17:638:20 | Run1 | ViableCallable.cs:635:49:635:51 | get_Item |
268+
| ViableCallable.cs:638:17:638:20 | Run1 | ViableCallable.cs:635:70:635:72 | set_Item |
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
| Partial.cs:1:15:1:26 | TwoPartClass |
22
| Partial.cs:4:18:4:42 | PartialMethodWithoutBody1 |
3-
| Partial.cs:7:27:7:42 | PartialProperty1 |
4-
| Partial.cs:7:46:7:48 | get_PartialProperty1 |
5-
| Partial.cs:7:51:7:53 | set_PartialProperty1 |
6-
| Partial.cs:9:27:9:30 | Item |
7-
| Partial.cs:9:45:9:47 | get_Item |
8-
| Partial.cs:9:50:9:52 | set_Item |
93
| Partial.cs:12:15:12:26 | TwoPartClass |
104
| Partial.cs:14:18:14:39 | PartialMethodWithBody1 |
5+
| Partial.cs:18:27:18:42 | PartialProperty1 |
6+
| Partial.cs:20:9:20:11 | get_PartialProperty1 |
7+
| Partial.cs:21:9:21:11 | set_PartialProperty1 |
8+
| Partial.cs:25:27:25:30 | Item |
9+
| Partial.cs:27:9:27:11 | get_Item |
10+
| Partial.cs:28:9:28:11 | set_Item |
1111
| Partial.cs:32:15:32:33 | OnePartPartialClass |
1212
| Partial.cs:34:18:34:42 | PartialMethodWithoutBody2 |

csharp/ql/test/library-tests/partial/PartialAccessors.expected

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
| Partial.cs:7:46:7:48 | get_PartialProperty1 | true |
2-
| Partial.cs:7:51:7:53 | set_PartialProperty1 | true |
3-
| Partial.cs:9:45:9:47 | get_Item | true |
4-
| Partial.cs:9:50:9:52 | set_Item | true |
1+
| Partial.cs:20:9:20:11 | get_PartialProperty1 | true |
2+
| Partial.cs:21:9:21:11 | set_PartialProperty1 | true |
3+
| Partial.cs:27:9:27:11 | get_Item | true |
4+
| Partial.cs:28:9:28:11 | set_Item | true |
55
| Partial.cs:41:30:41:32 | get_Property | false |
66
| Partial.cs:41:35:41:37 | set_Property | false |
77
| Partial.cs:44:9:44:11 | get_Item | false |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| Partial.cs:9:27:9:30 | Item | true |
1+
| Partial.cs:25:27:25:30 | Item | true |
22
| Partial.cs:42:19:42:22 | Item | false |
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| Partial.cs:7:27:7:42 | PartialProperty1 | true |
1+
| Partial.cs:18:27:18:42 | PartialProperty1 | true |
22
| Partial.cs:41:19:41:26 | Property | false |

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

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,58 @@ Partial.cs:
55
# 5| 6: [Method] Method2
66
# 5| -1: [TypeMention] Void
77
# 5| 4: [BlockStmt] {...}
8-
# 7| 7: [Property] PartialProperty1
8+
# 14| 7: [Method] PartialMethodWithBody1
9+
# 3| -1: [TypeMention] Void
10+
# 14| 4: [BlockStmt] {...}
11+
# 15| 8: [Method] Method3
12+
# 15| -1: [TypeMention] Void
13+
# 15| 4: [BlockStmt] {...}
14+
# 16| 9: [Field] _backingField
15+
# 16| -1: [TypeMention] object
16+
# 18| 10: [Property] PartialProperty1
917
# 7| -1: [TypeMention] object
10-
# 7| 3: [Getter] get_PartialProperty1
11-
# 7| 4: [Setter] set_PartialProperty1
18+
# 18| -1: [TypeMention] object
19+
# 20| 3: [Getter] get_PartialProperty1
20+
# 20| 4: [BlockStmt] {...}
21+
# 20| 0: [ReturnStmt] return ...;
22+
# 20| 0: [FieldAccess] access to field _backingField
23+
# 21| 4: [Setter] set_PartialProperty1
1224
#-----| 2: (Parameters)
13-
# 7| 0: [Parameter] value
14-
# 9| 8: [Indexer] Item
25+
# 21| 0: [Parameter] value
26+
# 21| 4: [BlockStmt] {...}
27+
# 21| 0: [ExprStmt] ...;
28+
# 21| 0: [AssignExpr] ... = ...
29+
# 21| 0: [FieldAccess] access to field _backingField
30+
# 21| 1: [ParameterAccess] access to parameter value
31+
# 23| 11: [Field] _backingArray
32+
# 23| -1: [TypeMention] Object[]
33+
# 23| 1: [TypeMention] object
34+
# 25| 12: [Indexer] Item
1535
# 9| -1: [TypeMention] object
36+
# 25| -1: [TypeMention] object
1637
#-----| 1: (Parameters)
1738
# 9| 0: [Parameter] index
1839
# 9| -1: [TypeMention] int
19-
# 9| 3: [Getter] get_Item
40+
# 25| -1: [TypeMention] int
41+
# 27| 3: [Getter] get_Item
2042
#-----| 2: (Parameters)
21-
# 9| 0: [Parameter] index
22-
# 9| 4: [Setter] set_Item
43+
# 25| 0: [Parameter] index
44+
# 27| 4: [BlockStmt] {...}
45+
# 27| 0: [ReturnStmt] return ...;
46+
# 27| 0: [ArrayAccess] access to array element
47+
# 27| -1: [FieldAccess] access to field _backingArray
48+
# 27| 0: [ParameterAccess] access to parameter index
49+
# 28| 4: [Setter] set_Item
2350
#-----| 2: (Parameters)
24-
# 9| 0: [Parameter] index
25-
# 9| 1: [Parameter] value
26-
# 14| 9: [Method] PartialMethodWithBody1
27-
# 3| -1: [TypeMention] Void
28-
# 14| 4: [BlockStmt] {...}
29-
# 15| 10: [Method] Method3
30-
# 15| -1: [TypeMention] Void
31-
# 15| 4: [BlockStmt] {...}
32-
# 16| 11: [Field] _backingField
33-
# 16| -1: [TypeMention] object
34-
# 23| 12: [Field] _backingArray
35-
# 23| -1: [TypeMention] Object[]
36-
# 23| 1: [TypeMention] object
51+
# 25| 0: [Parameter] index
52+
# 28| 1: [Parameter] value
53+
# 28| 4: [BlockStmt] {...}
54+
# 28| 0: [ExprStmt] ...;
55+
# 28| 0: [AssignExpr] ... = ...
56+
# 28| 0: [ArrayAccess] access to array element
57+
# 28| -1: [FieldAccess] access to field _backingArray
58+
# 28| 0: [ParameterAccess] access to parameter index
59+
# 28| 1: [ParameterAccess] access to parameter value
3760
# 32| [Class] OnePartPartialClass
3861
# 34| 5: [Method] PartialMethodWithoutBody2
3962
# 34| -1: [TypeMention] Void

0 commit comments

Comments
 (0)