class Ameba::AST::RedundantControlExpressionVisitor


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:



Instance Method Summary

Constructor Detail

def : 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]