class

Ameba::AST::RedundantControlExpressionVisitor

Inherits Reference < Object

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

Constructors

new(rule : Ameba::Rule::Base, source : Ameba::Source, node : Crystal::ASTNode)
Source

Instance methods

node

A node to run traversal on.

Source
rule

A corresponding rule that uses this visitor.

Source
source

A source that needs to be traversed.

Source