You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Quality.cs:26:19:26:26 | access to indexer | Call without target $@. | Quality.cs:26:19:26:26 | access to indexer | access to indexer |
2
+
| Quality.cs:29:21:29:27 | access to indexer | Call without target $@. | Quality.cs:29:21:29:27 | access to indexer | access to indexer |
3
+
| Quality.cs:32:9:32:21 | access to indexer | Call without target $@. | Quality.cs:32:9:32:21 | access to indexer | access to indexer |
4
+
| Quality.cs:34:21:34:25 | object creation of type null | Call without target $@. | Quality.cs:34:21:34:25 | object creation of type null | object creation of type null |
| Quality.cs:26:19:26:26 | access to indexer | Call without target $@. | Quality.cs:26:19:26:26 | access to indexer | access to indexer |
11
+
| Quality.cs:29:21:29:27 | access to indexer | Call without target $@. | Quality.cs:29:21:29:27 | access to indexer | access to indexer |
12
+
| Quality.cs:32:9:32:21 | access to indexer | Call without target $@. | Quality.cs:32:9:32:21 | access to indexer | access to indexer |
13
+
| Quality.cs:34:21:34:25 | object creation of type null | Call without target $@. | Quality.cs:34:21:34:25 | object creation of type null | object creation of type null |
14
+
| Quality.cs:38:16:38:26 | access to property MyProperty2 | Call without target $@. | Quality.cs:38:16:38:26 | access to property MyProperty2 | access to property MyProperty2 |
15
+
| Quality.cs:50:20:50:26 | object creation of type T | Call without target $@. | Quality.cs:50:20:50:26 | object creation of type T | object creation of type T |
Copy file name to clipboardExpand all lines: csharp/ql/test/query-tests/Telemetry/DatabaseQuality/Quality.cs
+31-1Lines changed: 31 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,43 @@ public Test()
16
16
17
17
newTest()
18
18
{
19
-
MyProperty4={1,2,3}
19
+
MyProperty4={1,2,3},
20
+
MyProperty6={[1]=""}
20
21
};
22
+
23
+
Event1.Invoke(this,5);
24
+
25
+
varstr="abcd";
26
+
varsub=str[..3];// TODO: this is not an indexer call, but rather a `str.Substring(0, 3)` call.
27
+
28
+
Span<int>sp=null;
29
+
varslice=sp[..3];// TODO: this is not an indexer call, but rather a `sp.Slice(0, 3)` call.
30
+
31
+
Span<byte>guidBytes=stackallocbyte[16];
32
+
guidBytes[08]=1;// TODO: this indexer call has no target, because the target is a `ref` returning getter.
33
+
34
+
newMyList([new(),newTest()]);// TODO: the `new()` call has no target, which is unexpected, as we know at compile time, that this is a `new Test()` call.
0 commit comments