abstract class Ameba::AST::BaseVisitor

Overview

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

Direct Known Subclasses

Defined in:

ameba/ast/visitors/base_visitor.cr

Constructors

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]