class Ameba::AST::RedundantControlExpressionVisitor

Overview

A class that utilizes a logic to traverse AST nodes and fire a source test callback if a redundant Crystal::ControlExpression is reached.

Defined in:

Constructors

Instance Method Summary

Constructor Detail

def self.new(rule, source, node) #

Instance Method Detail

def node : Crystal::ASTNode #

A node to run traversal on.


def rule : Rule::Base #

A corresponding rule that uses this visitor.


def source : Source #

A source that needs to be traversed.