class Prism::Translation::Parser::Compiler

def within_pattern

Within the given block, track that we're within a pattern.
def within_pattern
  begin
    parser.pattern_variables.push
    yield copy_compiler(in_pattern: true)
  ensure
    parser.pattern_variables.pop
  end
end