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(scope : Crystal::ASTNode)
Creates a new counting visitor
Instance Method Summary
-
#count
Returns the number of keywords that were found in the node
- #macro_condition : Bool
- #visit(node : Crystal::MacroIf | Crystal::MacroFor)