Skip to content

Commit 75d9b29

Browse files
committed
Test helper predicates for TypeSpec
1 parent c4a8ac4 commit 75d9b29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
| main.go:3:6:3:15 | type declaration specifier | status | int | def |
2-
| main.go:5:6:5:20 | type declaration specifier | intlist | []int | alias |
1+
| main.go:3:6:3:15 | type declaration specifier | status | status | main.go:3:13:3:15 | int | int | def |
2+
| main.go:5:6:5:20 | type declaration specifier | intlist | []int | main.go:5:16:5:20 | array type | []int | alias |

go/ql/test/library-tests/semmle/go/Decl/TypeSpec.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import go
22

33
from TypeSpec ts, string kind
44
where if ts instanceof AliasSpec then kind = "alias" else kind = "def"
5-
select ts, ts.getName(), ts.getTypeExpr().getType().pp(), kind
5+
select ts, ts.getName(), ts.getDeclaredType().pp(), ts.getTypeExpr(), ts.getRhsType().pp(), kind

0 commit comments

Comments
 (0)