class RuboCop::AST::NodePattern::Parser
def enforce_unary(node)
def enforce_unary(node) return node if node.arity == 1 detail = node.loc&.expression&.source || node.to_s raise NodePattern::Invalid, 'parse error, expected unary node pattern ' \ "but got expression matching multiple elements: #{detail}" end