Skip to content

Commit 0c24315

Browse files
committed
C#: Accept expected changes.
1 parent 0ef7bee commit 0c24315

32 files changed

+1192
-398
lines changed

csharp/ql/test/library-tests/controlflow/graph/BasicBlock.expected

Lines changed: 56 additions & 40 deletions
Large diffs are not rendered by default.

csharp/ql/test/library-tests/controlflow/graph/Dominance.expected

Lines changed: 356 additions & 157 deletions
Large diffs are not rendered by default.

csharp/ql/test/library-tests/controlflow/graph/EnclosingCallable.expected

Lines changed: 164 additions & 62 deletions
Large diffs are not rendered by default.

csharp/ql/test/library-tests/controlflow/graph/EntryElement.expected

Lines changed: 92 additions & 0 deletions
Large diffs are not rendered by default.

csharp/ql/test/library-tests/controlflow/graph/ExitElement.expected

Lines changed: 92 additions & 0 deletions
Large diffs are not rendered by default.

csharp/ql/test/library-tests/controlflow/graph/NodeGraph.expected

Lines changed: 172 additions & 82 deletions
Large diffs are not rendered by default.

csharp/ql/test/library-tests/controlflow/graph/Nodes.expected

Lines changed: 52 additions & 46 deletions
Large diffs are not rendered by default.

csharp/ql/test/library-tests/controlflow/guards/AbstractValue.expected

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,8 @@
117117
| not | Guards.cs:162:24:162:24 | access to parameter o |
118118
| not | Guards.cs:285:17:285:17 | access to parameter o |
119119
| not | Guards.cs:287:17:287:17 | access to parameter o |
120+
| not null | Assert.cs:5:7:5:17 | call to method <object initializer> |
121+
| not null | Assert.cs:5:7:5:17 | this access |
120122
| not null | Assert.cs:9:20:9:20 | access to parameter b |
121123
| not null | Assert.cs:9:31:9:32 | "" |
122124
| not null | Assert.cs:10:9:10:13 | access to type Debug |
@@ -228,6 +230,8 @@
228230
| not null | Assert.cs:94:16:94:24 | ... && ... |
229231
| not null | Assert.cs:94:22:94:24 | !... |
230232
| not null | Assert.cs:94:23:94:24 | access to parameter b2 |
233+
| not null | Collections.cs:7:14:7:24 | call to method <object initializer> |
234+
| not null | Collections.cs:7:14:7:24 | this access |
231235
| not null | Collections.cs:11:13:11:13 | access to local variable b |
232236
| not null | Collections.cs:11:13:11:32 | Boolean b = ... |
233237
| not null | Collections.cs:11:17:11:20 | access to parameter args |
@@ -496,6 +500,8 @@
496500
| not null | Collections.cs:102:9:102:15 | access to type Console |
497501
| not null | Collections.cs:102:9:102:31 | call to method WriteLine |
498502
| not null | Collections.cs:102:27:102:30 | access to parameter args |
503+
| not null | Guards.cs:3:14:3:19 | call to method <object initializer> |
504+
| not null | Guards.cs:3:14:3:19 | this access |
499505
| not null | Guards.cs:10:13:10:25 | !... |
500506
| not null | Guards.cs:10:14:10:25 | !... |
501507
| not null | Guards.cs:10:16:10:24 | ... == ... |

csharp/ql/test/library-tests/csharp10/fileScopedNamespace.expected

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
fileScopedNamespace
2+
| FileScopedNamespace.cs:1:11:1:31 | MyFileScopedNamespace | FileScopedNamespace.cs:3:14:3:39 | <object initializer> |
23
| FileScopedNamespace.cs:1:11:1:31 | MyFileScopedNamespace | FileScopedNamespace.cs:3:14:3:39 | MyFileScopedNamespaceClass |
34
| FileScopedNamespace.cs:1:11:1:31 | MyFileScopedNamespace | FileScopedNamespace.cs:5:29:5:35 | myField |
45
| FileScopedNamespace.cs:1:11:1:31 | MyFileScopedNamespace | FileScopedNamespace.cs:6:19:6:24 | MyProp |

csharp/ql/test/library-tests/csharp6/MemberAccess.expected

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ memberAccess
44
| csharp6.cs:32:38:32:70 | access to indexer | csharp6.cs:32:38:32:66 | object creation of type Dictionary<Int32,String> | Conditional |
55
| csharp6.cs:32:38:32:73 | access to indexer | csharp6.cs:32:38:32:70 | access to indexer | Unconditional |
66
methodCall
7+
| csharp6.cs:10:7:10:17 | call to method <object initializer> | csharp6.cs:10:7:10:17 | this access | Unconditional |
78
| csharp6.cs:30:31:30:44 | call to method ToUpper | csharp6.cs:30:31:30:33 | access to local variable foo | Conditional |
9+
| csharp6.cs:53:7:53:23 | call to method <object initializer> | csharp6.cs:53:7:53:23 | this access | Unconditional |
10+
| csharp6.cs:55:11:55:18 | call to method <object initializer> | csharp6.cs:55:11:55:18 | this access | Unconditional |
811
extensionMethodCall
912
| csharp6.cs:29:35:29:44 | call to method Any<Char> | csharp6.cs:29:35:29:37 | access to local variable bar | Conditional |
1013
| csharp6.cs:30:31:30:66 | call to method Select<Char,Boolean> | csharp6.cs:30:31:30:44 | call to method ToUpper | Unconditional |

0 commit comments

Comments
 (0)