class

Ameba::AST::ScopeVisitor

Inherits Ameba::AST::BaseVisitor < Crystal::Visitor < Reference < Object

AST Visitor that traverses the source and constructs scopes.

Constants

NODES = {ClassDef, ModuleDef, EnumDef, LibDef, FunDef, TypeDef, TypeOf, CStructOrUnionDef, ProcLiteral, Block, Macro, MacroIf, MacroFor}

Non-exhaustive list of nodes to be visited by Ameba's rules.

SPECIAL_NODE_NAMES = ["super", "previous_def"] of ::String

Constructors

new(rule, source, skip = nil)
Source