Java: Override dominates to reference the right type.

This commit is contained in:
Anders Schack-Mulligen
2025-05-16 14:22:36 +02:00
parent 6b830faa62
commit a98d93b98b

View File

@@ -79,6 +79,14 @@ class BasicBlock extends BbImpl::BasicBlock {
/** Gets the immediately enclosing callable whose body contains this node. */
Callable getEnclosingCallable() { result = this.getScope() }
/**
* Holds if this basic block dominates basic block `bb`.
*
* That is, all paths reaching `bb` from the entry point basic block must
* go through this basic block.
*/
predicate dominates(BasicBlock bb) { super.dominates(bb) }
/**
* DEPRECATED: Use `getASuccessor` instead.
*