abstract class Ameba::AST::BaseVisitor


An abstract base visitor that utilizes general logic for all visitors.

Direct Known Subclasses

Defined in:



Instance Method Summary

Constructor Detail

def self.new(rule : Ameba::Rule::Base, source : Ameba::Source) #

Creates instance of this visitor.

visitor = Ameba::AST::NodeVisitor.new(rule, source)

[View source]

Instance Method Detail

def visit(node : Crystal::ASTNode) #

A main visit method that accepts Crystal::ASTNode. Returns true, meaning all child nodes will be traversed.

[View source]