module Regexp::Expression::Shared::ClassMethods
def token_class
def token_class if self == Root || self < Sequence nil # no token class because these objects are Parser-generated # TODO: synch exp class, token class & type names for this in v3.0.0 elsif self == CharacterType::Any Regexp::Syntax::Token::Meta else Regexp::Syntax::Token.const_get(name.split('::')[2]) end end