Module: SyntaxTree::ContainsAssignment
- Defined in:
- lib/syntax_tree.rb
Overview
If the predicate of a conditional or loop contains an assignment (in which case we can’t know for certain that that assignment doesn’t impact the statements inside the conditional) then we can’t use the modifier form and we must use the block form.