module Ameba::AST

Overview

A module that helps to traverse Crystal AST using Crystal::Visitor.

Defined in:

ameba/ast/branch.cr
ameba/ast/branchable.cr
ameba/ast/flow_expression.cr
ameba/ast/scope.cr
ameba/ast/variabling/argument.cr
ameba/ast/variabling/assignment.cr
ameba/ast/variabling/ivariable.cr
ameba/ast/variabling/reference.cr
ameba/ast/variabling/variable.cr
ameba/ast/visitors/base_visitor.cr
ameba/ast/visitors/counting_visitor.cr
ameba/ast/visitors/flow_expression_visitor.cr
ameba/ast/visitors/node_visitor.cr
ameba/ast/visitors/redundant_control_expression_visitor.cr
ameba/ast/visitors/scope_visitor.cr
ameba/ast/visitors/top_level_nodes_visitor.cr

Constant Summary

NODES = [Alias, IsA, Assign, Call, Block, Case, ClassDef, ClassVar, Def, EnumDef, ExceptionHandler, Expressions, HashLiteral, If, InstanceVar, LibDef, ModuleDef, NilLiteral, StringInterpolation, Unless, Var, When, While, Until]

List of nodes to be visited by Ameba's rules.