class DefVisitor

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

Constant Summary

CRYSTAL_LOCATOR_PARSER = /^.*\.cr(:(?<line_number>\d+))?(:(?<col_number>\d+))?$/

Constructors

Instance Method Summary

Constructor Detail

def self.new(def_locators : Array(String), excludes : Array(String), entrypoint : String) #

[View source]

Instance Method Detail

def all_defs : Array(Crystal::Def) #

[View source]
def files : Set(String) #

[View source]
def visit(node : Crystal::Def) #

[View source]
def visit(node : Crystal::ASTNode) #

[View source]