class RuboCop::AST::NodePattern::LexerRex

def matches

def matches
  m = (1..9).map { |i| ss[i] }
  m.pop until m[-1] or m.empty?
  m
end