Add ConditionGuardNode.getOutcome

This commit is contained in:
Owen Mansel-Chan
2026-01-27 11:03:01 +00:00
parent 5bfeede364
commit c316d51d41

View File

@@ -313,6 +313,9 @@ module ControlFlow {
*/
Expr getCondition() { result = cond }
/** Gets the value of the condition that this node corresponds to. */
boolean getOutcome() { result = outcome }
override Root getRoot() { result.isRootOf(cond) }
override string toString() { result = cond + " is " + outcome }