mirror of
https://github.com/github/codeql.git
synced 2026-02-08 03:01:10 +01:00
add super calls to the callgraph
This commit is contained in:
committed by
GitHub
parent
2d86b13d44
commit
068c57acdd
@@ -79,6 +79,13 @@ private module Cached {
|
||||
t = mc.getBase().getType() and
|
||||
p = t.getClassPredicate(mc.getMemberName(), mc.getNumberOfArguments())
|
||||
)
|
||||
or
|
||||
// super calls
|
||||
exists(Super sup, ClassType type |
|
||||
mc.getBase() = sup and
|
||||
sup.getEnclosingPredicate().(ClassPredicate).getParent().getType() = type and
|
||||
p = type.getASuperType().getClassPredicate(mc.getMemberName(), mc.getNumberOfArguments())
|
||||
)
|
||||
}
|
||||
|
||||
cached
|
||||
|
||||
Reference in New Issue
Block a user