We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ConditionGuardNode.getOutcome
1 parent 5bfeede commit c316d51Copy full SHA for c316d51
go/ql/lib/semmle/go/controlflow/ControlFlowGraph.qll
@@ -313,6 +313,9 @@ module ControlFlow {
313
*/
314
Expr getCondition() { result = cond }
315
316
+ /** Gets the value of the condition that this node corresponds to. */
317
+ boolean getOutcome() { result = outcome }
318
+
319
override Root getRoot() { result.isRootOf(cond) }
320
321
override string toString() { result = cond + " is " + outcome }
0 commit comments