mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
Add ConditionGuardNode.getOutcome
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user