Cfg: Add getEnclosingCallable to shared BasicBlock

This commit is contained in:
Anders Schack-Mulligen
2026-02-06 16:39:50 +01:00
parent 4a97a449fc
commit 48d7d9cedb

View File

@@ -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() }