Ameba::AST::ScopeVisitor - ameba 1.7.0

# class Ameba::AST::ScopeVisitor

- Ameba::AST::ScopeVisitor
- Ameba::AST::BaseVisitor
- Crystal::Visitor
- Reference
- Object

##
Overview

AST Visitor that traverses the source and constructs scopes.

##
Defined in:

ameba/ast/visitors/scope_visitor.cr

##
Constant Summary

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)

### Instance methods inherited from class `Ameba::AST::BaseVisitor`

visit(node : Crystal::ASTNode) visit

### Constructor methods inherited from class `Ameba::AST::BaseVisitor`

new(rule : Ameba::Rule::Base, source : Ameba::Source) new

##
Constructor Detail

def self.new(rule, source, skip = nil) #