class
Ameba::AST::LoopBreakVisitor
- Ameba::AST::LoopBreakVisitor
- Crystal::Visitor
- Reference
- Object
Overview
AST Visitor that finds break nodes leaving the loop which body is visited,
skipping the ones consumed by the nested loops, blocks and procs.
Defined in:
ameba/ast/visitors/loop_break_visitor.crConstructors
-
.new(body : Crystal::ASTNode)
Creates a new visitor of the loop body
Instance Method Summary
-
#found? : Bool
Returns
trueif abreakleaving the loop was found