class Ameba::AST::LoopBreakVisitor

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(body : Crystal::ASTNode) #

Creates a new visitor of the loop body


[View source]

Instance Method Detail

def found? : Bool #

Returns true if a break leaving the loop was found


[View source]