class RuboCop::AST::NodePattern::Compiler

def compile_intersect

def compile_intersect
  tokens_until(']', 'intersection')
    .map { compile_expr }
    .join(' && ')
end