File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ signature class FooSig ;
2
+
3
+ class FooImpl extends string {
4
+ FooImpl ( ) { this = "FooImpl" }
5
+ }
6
+
7
+ module Bar< FooSig Foo> { }
8
+
9
+ module Scope {
10
+ import Bar< FooImpl >
11
+
12
+ class Foo extends int {
13
+ Foo ( ) { this = 1 }
14
+ }
15
+
16
+ predicate fooTest ( Foo f ) { none ( ) }
17
+ }
Original file line number Diff line number Diff line change
1
+ getTarget
2
+ | ClassSig.qll:10:3:10:21 | Import | ClassSig.qll:7:8:7:10 | Bar |
3
+ | ClassSig.qll:10:10:10:21 | Bar | ClassSig.qll:7:8:7:10 | Bar |
4
+ | Foo.qll:5:34:5:38 | TypeExpr | Foo.qll:1:26:1:30 | MySig |
5
+ | Foo.qll:9:24:9:28 | TypeExpr | Foo.qll:1:26:1:30 | MySig |
6
+ | Foo.qll:17:1:17:16 | Import | Foo.qll:15:8:15:16 | SimpleMod |
7
+ | Foo.qll:17:8:17:16 | SimpleMod | Foo.qll:15:8:15:16 | SimpleMod |
8
+ | Foo.qll:19:38:19:52 | MkThing | Foo.qll:9:16:9:22 | MkThing |
9
+ | Foo.qll:19:38:19:60 | TypeExpr | Foo.qll:10:20:10:25 | SubMod |
10
+ | Foo.qll:19:46:19:51 | TypeExpr | Foo.qll:5:16:5:21 | MyImpl |
11
+ getTargetType
12
+ | ClassSig.qll:3:23:3:28 | TypeExpr | file://:0:0:0:0 | string |
13
+ | ClassSig.qll:7:12:7:17 | TypeExpr | ClassSig.qll:1:17:1:22 | FooSig |
14
+ | ClassSig.qll:10:3:10:21 | Import | ClassSig.qll:7:8:7:10 | Bar |
15
+ | ClassSig.qll:10:10:10:21 | Bar | ClassSig.qll:7:8:7:10 | Bar |
16
+ | ClassSig.qll:10:14:10:20 | TypeExpr | ClassSig.qll:3:7:3:13 | FooImpl |
17
+ | ClassSig.qll:12:21:12:23 | TypeExpr | file://:0:0:0:0 | int |
18
+ | ClassSig.qll:16:21:16:23 | TypeExpr | ClassSig.qll:12:9:12:11 | Foo |
1
19
| Foo.qll:5:34:5:38 | TypeExpr | Foo.qll:1:26:1:30 | MySig |
2
20
| Foo.qll:9:24:9:28 | TypeExpr | Foo.qll:1:26:1:30 | MySig |
3
21
| Foo.qll:17:1:17:16 | Import | Foo.qll:15:8:15:16 | SimpleMod |
Original file line number Diff line number Diff line change 1
1
import ql
2
2
3
3
query Type getTarget ( TypeRef me ) { result = me .getResolvedModule ( ) .toType ( ) }
4
+
5
+ query Type getTargetType ( TypeRef me ) { result = me .getResolvedType ( ) }
You can’t perform that action at this time.
0 commit comments