mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
C#: Update some tuple related tests.
This commit is contained in:
@@ -43,12 +43,6 @@
|
||||
| Assignables.cs:92:23:92:23 | b |
|
||||
| Assignables.cs:92:33:92:33 | s |
|
||||
| Assignables.cs:95:40:95:44 | tuple |
|
||||
| Assignables.cs:97:24:97:24 | Item1 |
|
||||
| Assignables.cs:97:27:97:36 | Item2 |
|
||||
| Assignables.cs:101:6:101:8 | Item1 |
|
||||
| Assignables.cs:101:11:101:24 | Item2 |
|
||||
| Assignables.cs:101:12:101:15 | Item1 |
|
||||
| Assignables.cs:101:18:101:23 | Item2 |
|
||||
| Assignables.cs:108:13:108:13 | i |
|
||||
| Assignables.cs:109:14:109:14 | p |
|
||||
| Assignables.cs:113:25:113:25 | i |
|
||||
@@ -69,8 +63,6 @@
|
||||
| Assignables.cs:132:13:132:13 | x |
|
||||
| Assignables.cs:133:29:133:29 | s |
|
||||
| Assignables.cs:138:19:138:19 | x |
|
||||
| Discards.cs:5:6:5:8 | Item1 |
|
||||
| Discards.cs:5:11:5:16 | Item2 |
|
||||
| Discards.cs:5:30:5:30 | x |
|
||||
| Discards.cs:19:14:19:14 | x |
|
||||
| Discards.cs:20:17:20:17 | y |
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 0 | CSharp7.cs:96:19:96:19 | Item1 |
|
||||
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 1 | CSharp7.cs:102:22:102:46 | Item2 |
|
||||
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 0 | CSharp7.cs:213:6:213:8 | Item1 |
|
||||
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 1 | CSharp7.cs:213:11:213:16 | Item2 |
|
||||
| (Int32,Int32) | (int, int) | ValueTuple<int, int> | 2 | 0 | CSharp7.cs:62:10:62:10 | Item1 |
|
||||
| (Int32,Int32) | (int, int) | ValueTuple<int, int> | 2 | 1 | CSharp7.cs:62:17:62:17 | Item2 |
|
||||
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 0 | CSharp7.cs:95:19:95:19 | Item1 |
|
||||
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 1 | CSharp7.cs:95:22:95:37 | Item2 |
|
||||
| (String,Int32) | (string, int) | ValueTuple<string, int> | 2 | 0 | CSharp7.cs:82:17:82:17 | Item1 |
|
||||
| (String,Int32) | (string, int) | ValueTuple<string, int> | 2 | 1 | CSharp7.cs:82:23:82:23 | Item2 |
|
||||
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 0 | CSharp7.cs:87:19:87:27 | Item1 |
|
||||
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 1 | CSharp7.cs:87:30:87:33 | Item2 |
|
||||
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 0 | Item1 |
|
||||
| (Int32,(String,Int32)) | (int, (string, int)) | ValueTuple<int, (string, int)> | 2 | 1 | Item2 |
|
||||
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 0 | Item1 |
|
||||
| (Int32,Double) | (int, double) | ValueTuple<int, double> | 2 | 1 | Item2 |
|
||||
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 0 | Item1 |
|
||||
| (Int32,String) | (int, string) | ValueTuple<int, string> | 2 | 1 | Item2 |
|
||||
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 0 | Item1 |
|
||||
| (String,String) | (string, string) | ValueTuple<string, string> | 2 | 1 | Item2 |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import csharp
|
||||
|
||||
from TupleType tt, int i
|
||||
where tt.getAnElement().fromSource()
|
||||
where tt.fromSource()
|
||||
select tt.getName(), tt.toStringWithTypes(), tt.getUnderlyingType().toStringWithTypes(),
|
||||
tt.getArity(), i, tt.getElement(i)
|
||||
tt.getArity(), i, tt.getElement(i).getName()
|
||||
|
||||
Reference in New Issue
Block a user