Skip to content

Commit 571b67a

Browse files
committed
C#: Update test expected output.
1 parent 1b05791 commit 571b67a

File tree

5 files changed

+24
-19
lines changed

5 files changed

+24
-19
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,9 @@
270270
| ViableCallable.cs:679:17:679:20 | Run3 | ViableCallable.cs:637:21:637:21 | M |
271271
| ViableCallable.cs:679:17:679:20 | Run3 | ViableCallable.cs:646:21:646:21 | M |
272272
| ViableCallable.cs:679:17:679:20 | Run3 | ViableCallable.cs:648:21:648:21 | M |
273-
| ViableCallable.cs:709:17:709:20 | Run1 | ViableCallable.cs:698:43:698:47 | add_Event |
274-
| ViableCallable.cs:709:17:709:20 | Run1 | ViableCallable.cs:698:43:698:47 | remove_Event |
275273
| ViableCallable.cs:709:17:709:20 | Run1 | ViableCallable.cs:703:42:703:44 | get_Property |
276274
| ViableCallable.cs:709:17:709:20 | Run1 | ViableCallable.cs:703:63:703:65 | set_Property |
277275
| ViableCallable.cs:709:17:709:20 | Run1 | ViableCallable.cs:705:49:705:51 | get_Item |
278276
| ViableCallable.cs:709:17:709:20 | Run1 | ViableCallable.cs:705:70:705:72 | set_Item |
277+
| ViableCallable.cs:709:17:709:20 | Run1 | ViableCallable.cs:706:51:706:53 | add_Event |
278+
| ViableCallable.cs:709:17:709:20 | Run1 | ViableCallable.cs:706:59:706:64 | remove_Event |

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
| Partial.cs:29:27:29:30 | Item |
99
| Partial.cs:31:9:31:11 | get_Item |
1010
| Partial.cs:32:9:32:11 | set_Item |
11+
| Partial.cs:36:39:36:51 | PartialEvent1 |
12+
| Partial.cs:36:55:36:57 | add_PartialEvent1 |
13+
| Partial.cs:36:63:36:68 | remove_PartialEvent1 |
1114
| Partial.cs:39:15:39:33 | OnePartPartialClass |
1215
| Partial.cs:41:18:41:42 | PartialMethodWithoutBody2 |
1316
| PartialMultipleFiles1.cs:1:22:1:41 | PartialMultipleFiles |

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
| Partial.cs:13:39:13:51 | add_PartialEvent1 | false |
2-
| Partial.cs:13:39:13:51 | remove_PartialEvent1 | false |
31
| Partial.cs:24:9:24:11 | get_PartialProperty1 | true |
42
| Partial.cs:25:9:25:11 | set_PartialProperty1 | true |
53
| Partial.cs:31:9:31:11 | get_Item | true |
64
| Partial.cs:32:9:32:11 | set_Item | true |
5+
| Partial.cs:36:55:36:57 | add_PartialEvent1 | true |
6+
| Partial.cs:36:63:36:68 | remove_PartialEvent1 | true |
77
| Partial.cs:48:30:48:32 | get_Property | false |
88
| Partial.cs:48:35:48:37 | set_Property | false |
99
| Partial.cs:51:9:51: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:13:39:13:51 | PartialEvent1 | false |
1+
| Partial.cs:36:39:36:51 | PartialEvent1 | true |
22
| Partial.cs:54:31:54:35 | Event | false |

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

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,15 @@ Partial.cs:
55
# 7| 7: [Method] Method2
66
# 7| -1: [TypeMention] Void
77
# 7| 4: [BlockStmt] {...}
8-
# 13| 8: [Event] PartialEvent1
9-
# 13| -1: [TypeMention] EventHandler
10-
# 13| 3: [AddEventAccessor] add_PartialEvent1
11-
#-----| 2: (Parameters)
12-
# 13| 0: [Parameter] value
13-
# 13| 4: [RemoveEventAccessor] remove_PartialEvent1
14-
#-----| 2: (Parameters)
15-
# 13| 0: [Parameter] value
16-
# 18| 9: [Method] PartialMethodWithBody1
8+
# 18| 8: [Method] PartialMethodWithBody1
179
# 5| -1: [TypeMention] Void
1810
# 18| 4: [BlockStmt] {...}
19-
# 19| 10: [Method] Method3
11+
# 19| 9: [Method] Method3
2012
# 19| -1: [TypeMention] Void
2113
# 19| 4: [BlockStmt] {...}
22-
# 20| 11: [Field] _backingField
14+
# 20| 10: [Field] _backingField
2315
# 20| -1: [TypeMention] object
24-
# 22| 12: [Property] PartialProperty1
16+
# 22| 11: [Property] PartialProperty1
2517
# 9| -1: [TypeMention] object
2618
# 22| -1: [TypeMention] object
2719
# 24| 3: [Getter] get_PartialProperty1
@@ -36,10 +28,10 @@ Partial.cs:
3628
# 25| 0: [AssignExpr] ... = ...
3729
# 25| 0: [FieldAccess] access to field _backingField
3830
# 25| 1: [ParameterAccess] access to parameter value
39-
# 27| 13: [Field] _backingArray
31+
# 27| 12: [Field] _backingArray
4032
# 27| -1: [TypeMention] Object[]
4133
# 27| 1: [TypeMention] object
42-
# 29| 14: [Indexer] Item
34+
# 29| 13: [Indexer] Item
4335
# 11| -1: [TypeMention] object
4436
# 29| -1: [TypeMention] object
4537
#-----| 1: (Parameters)
@@ -65,6 +57,16 @@ Partial.cs:
6557
# 32| -1: [FieldAccess] access to field _backingArray
6658
# 32| 0: [ParameterAccess] access to parameter index
6759
# 32| 1: [ParameterAccess] access to parameter value
60+
# 36| 14: [Event] PartialEvent1
61+
# 13| -1: [TypeMention] EventHandler
62+
# 36| 3: [AddEventAccessor] add_PartialEvent1
63+
#-----| 2: (Parameters)
64+
# 36| 0: [Parameter] value
65+
# 36| 4: [BlockStmt] {...}
66+
# 36| 4: [RemoveEventAccessor] remove_PartialEvent1
67+
#-----| 2: (Parameters)
68+
# 36| 0: [Parameter] value
69+
# 36| 4: [BlockStmt] {...}
6870
# 39| [Class] OnePartPartialClass
6971
# 41| 6: [Method] PartialMethodWithoutBody2
7072
# 41| -1: [TypeMention] Void

0 commit comments

Comments
 (0)