AST: add MethodCall as a subclass of Call

This commit is contained in:
Arthur Baars
2021-02-22 12:31:11 +01:00
parent 5fe7bd57fa
commit 79bb20b31f
12 changed files with 89 additions and 73 deletions

View File

@@ -89,7 +89,7 @@ private predicate capturedCallRead(BasicBlock bb, int i, LocalVariable v) {
or
// If the read happens inside a block, we restrict to the call that
// contains the block
scope = any(Call c | bb.getNode(i) = c.getAControlFlowNode()).getBlock()
scope = any(MethodCall c | bb.getNode(i) = c.getAControlFlowNode()).getBlock()
)
}
@@ -146,7 +146,7 @@ private module Cached {
or
// If the write happens inside a block, we restrict to the call that
// contains the block
scope = any(Call c | bb.getNode(i) = c.getAControlFlowNode()).getBlock()
scope = any(MethodCall c | bb.getNode(i) = c.getAControlFlowNode()).getBlock()
)
}