File tree Expand file tree Collapse file tree 3 files changed +13
-1
lines changed
src/codeql_ql/ast/internal Expand file tree Collapse file tree 3 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ private module Cached {
8181 // super calls
8282 exists ( Super sup , ClassType type , Type supertype |
8383 mc .getBase ( ) = sup and
84- sup .getEnclosingPredicate ( ) .( ClassPredicate ) . getParent ( ) .getType ( ) = type and
84+ sup .getEnclosingPredicate ( ) .getParent ( ) . ( Class ) .getType ( ) = type and
8585 supertype in [ type .getASuperType ( ) , type .getAnInstanceofType ( ) ] and
8686 p = supertype .getClassPredicate ( mc .getMemberName ( ) , mc .getNumberOfArguments ( ) )
8787 )
Original file line number Diff line number Diff line change 1+ class Foo extends string {
2+ Foo ( ) { this = "Foo" }
3+
4+ string getImportedPath ( ) { none ( ) }
5+ }
6+
7+ class Bar extends string , Foo {
8+ Bar ( ) { exists ( Foo .super .getImportedPath ( ) ) }
9+
10+ override string getImportedPath ( ) { none ( ) }
11+ }
Original file line number Diff line number Diff line change 11getTarget
22| Bar.qll:5:38:5:47 | PredicateCall | Bar.qll:8:3:8:31 | ClasslessPredicate snapshot |
3+ | Baz.qll:8:18:8:44 | MemberCall | Baz.qll:4:3:4:37 | ClassPredicate getImportedPath |
34| Foo.qll:5:26:5:30 | PredicateCall | Foo.qll:3:1:3:26 | ClasslessPredicate foo |
45| Foo.qll:10:21:10:25 | PredicateCall | Foo.qll:8:3:8:28 | ClassPredicate bar |
56| Foo.qll:14:30:14:40 | MemberCall | Foo.qll:10:3:10:27 | ClassPredicate baz |
You can’t perform that action at this time.
0 commit comments