CodeQL library for Ruby
codeql/ruby-all 4.1.8 (changelog, source)
Search

Member predicate WhileModifierExpr::entersLoopWhenConditionIs

Holds if the loop body is entered when the condition is condValue. For while-modifier loops, this holds when condValue is true.

predicate entersLoopWhenConditionIs(boolean condValue)