mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C#: Add type locations test.
This commit is contained in:
@@ -50,3 +50,11 @@ accessor_location
|
||||
| B.cs:3:14:3:14 | B | B.cs:10:9:10:11 | set_Item | B.cs:10:9:10:11 | B.cs:10:9:10:11 |
|
||||
| B.cs:3:14:3:14 | B | B.cs:15:9:15:11 | add_Event | B.cs:15:9:15:11 | B.cs:15:9:15:11 |
|
||||
| B.cs:3:14:3:14 | B | B.cs:16:9:16:14 | remove_Event | B.cs:16:9:16:14 | B.cs:16:9:16:14 |
|
||||
type_location
|
||||
| A.cs:3:23:3:26 | A<Int32> | A.cs:3:23:3:26 | A.cs:3:23:3:26 |
|
||||
| A.cs:3:23:3:26 | A<String> | A.cs:3:23:3:26 | A.cs:3:23:3:26 |
|
||||
| A.cs:3:23:3:26 | A`1 | A.cs:3:23:3:26 | A.cs:3:23:3:26 |
|
||||
| A.cs:3:25:3:25 | T | A.cs:3:25:3:25 | A.cs:3:25:3:25 |
|
||||
| A.cs:12:14:12:15 | A2 | A.cs:12:14:12:15 | A.cs:12:14:12:15 |
|
||||
| B.cs:3:14:3:14 | B | B.cs:3:14:3:14 | B.cs:3:14:3:14 |
|
||||
| C.cs:3:7:3:7 | C | C.cs:3:7:3:7 | C.cs:3:7:3:7 |
|
||||
|
||||
@@ -12,3 +12,7 @@ query predicate accessor_location(Type t, Accessor a, SourceLocation l) {
|
||||
l = a.getLocation() and
|
||||
not l instanceof EmptyLocation
|
||||
}
|
||||
|
||||
query predicate type_location(Type t, SourceLocation l) {
|
||||
l = t.getLocation() and not l instanceof EmptyLocation
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user