class Crodoc::AST::Visitor
- Crodoc::AST::Visitor
- Crystal::Visitor
- Reference
- Object
Overview
Visitor to help traverse the Crystal AST
Defined in:
crodoc/ast/visitor.crConstructors
-
.new(source : Crodoc::Source)
Creates an instance of this visitor.
Instance Method Summary
- #code
-
#source : Source
The source to traverse
- #visit_any(node)
Constructor Detail
def self.new(source : Crodoc::Source)
#
Creates an instance of this visitor.
Example:
visitor = Crodoc::AST::Visitor.new(source)