class DefVisitor
- DefVisitor
- Crystal::Visitor
- Reference
- Object
Overview
A visitor for defs, oddly enough.
Walk through the AST and capture all references to Defs that match a def_locator
Defined in:
def_visitor.crConstant Summary
-
CRYSTAL_LOCATOR_PARSER =
/^.*\.cr(:(?<line_number>\d+))?(:(?<col_number>\d+))?$/
Constructors
Instance Method Summary
- #all_defs : Array(Crystal::Def)
- #files : Set(String)
- #visit(node : Crystal::Def)
- #visit(node : Crystal::ASTNode)
Constructor Detail
def self.new(def_locators : Array(String), excludes : Array(String), entrypoint : String)
#