Skip to content

Commit 5be62e0

Browse files
committed
Cfg: Add getEnclosingCallable to shared BasicBlock
1 parent b5f70fc commit 5be62e0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

shared/controlflow/codeql/controlflow/BasicBlock.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ module Make<LocationSig Location, InputSig<Location> Input> implements CfgSig<Lo
177177
/** Gets the CFG scope of this basic block. */
178178
CfgScope getScope() { result = nodeGetCfgScope(this.getFirstNode()) }
179179

180+
/** Gets the enclosing callable of this basic block. */
181+
CfgScope getEnclosingCallable() { result = nodeGetCfgScope(this.getFirstNode()) }
182+
180183
/** Gets the location of this basic block. */
181184
Location getLocation() { result = this.getFirstNode().getLocation() }
182185

0 commit comments

Comments
 (0)