class RuboCop::Cop::InternalAffairs::NodePatternGroups

Use node groups (‘any_block`, `argument`, `boolean`, `call`, `numeric`, `range`) in node patterns instead of a union (`{ … }`) of the member types of the group.

@example

# bad
def_node_matcher :my_matcher, <<~PATTERN
  {send csend}
PATTERN

# good
def_node_matcher :my_matcher, <<~PATTERN
  call
PATTERN

rubocop:disable InternalAffairs/RedundantSourceRange – node here is a ‘NodePattern::Node`