class
   Ameba::AST::CountingVisitor
  
  - Ameba::AST::CountingVisitor
- Crystal::Visitor
- Reference
- Object
Overview
AST Visitor that counts occurrences of certain keywords
Defined in:
ameba/ast/visitors/counting_visitor.crConstant Summary
- 
        DEFAULT_COMPLEXITY = 1
Constructors
- 
        .new(node : Crystal::ASTNode)
        
          Creates a new counting visitor 
Instance Method Summary
- 
        #count : Int32
        
          Returns the number of keywords that were found in the node 
- 
        #macro_condition? : Bool
        
          Returns trueif the node is within a macro condition
- #visit(node : Crystal::MacroIf | Crystal::MacroFor)