class RuboCop::Cop::InternalAffairs::NodePatternGroups::ASTWalker

Walks an AST that has been processed by ‘InternalAffairs::NodePatternGroups::Processor` in order to find `node_type` and `node_sequence` nodes that can be replaced with a node group in `InternalAffairs/NodePatternGroups`.

Calling ‘ASTWalker#walk` sets `node_groups` with an array of `NodeGroup` structs that contain metadata about nodes that can be replaced, including location data. That metadata is used by the cop to register offenses and perform corrections.