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:

ameba/ast/visitors/redundant_control_expression_visitor.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def node : Crystal::ASTNode #

A node to run traversal on.


[View source]
def rule : Rule::Base #

A corresponding rule that uses this visitor.


[View source]
def source : Source #

A source that needs to be traversed.


[View source]