mirror of
https://github.com/github/codeql.git
synced 2026-03-30 20:28:15 +02:00
Cfg: Add getEnclosingCallable to shared BasicBlock
This commit is contained in:
@@ -177,6 +177,9 @@ module Make<LocationSig Location, InputSig<Location> Input> implements CfgSig<Lo
|
||||
/** Gets the CFG scope of this basic block. */
|
||||
CfgScope getScope() { result = nodeGetCfgScope(this.getFirstNode()) }
|
||||
|
||||
/** Gets the enclosing callable of this basic block. */
|
||||
CfgScope getEnclosingCallable() { result = nodeGetCfgScope(this.getFirstNode()) }
|
||||
|
||||
/** Gets the location of this basic block. */
|
||||
Location getLocation() { result = this.getFirstNode().getLocation() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user