mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Test helper predicates for TypeSpec
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
| main.go:3:6:3:15 | type declaration specifier | status | int | def |
|
||||
| main.go:5:6:5:20 | type declaration specifier | intlist | []int | alias |
|
||||
| main.go:3:6:3:15 | type declaration specifier | status | status | main.go:3:13:3:15 | int | int | def |
|
||||
| main.go:5:6:5:20 | type declaration specifier | intlist | []int | main.go:5:16:5:20 | array type | []int | alias |
|
||||
|
||||
@@ -2,4 +2,4 @@ import go
|
||||
|
||||
from TypeSpec ts, string kind
|
||||
where if ts instanceof AliasSpec then kind = "alias" else kind = "def"
|
||||
select ts, ts.getName(), ts.getTypeExpr().getType().pp(), kind
|
||||
select ts, ts.getName(), ts.getDeclaredType().pp(), ts.getTypeExpr(), ts.getRhsType().pp(), kind
|
||||
|
||||
Reference in New Issue
Block a user