Deprecate Lexer::Elem#[] and Lexer::State#[]
Lexer::Elem#[]
Lexer::State#[]
Discussed in https://github.com/ruby/ruby/pull/5093#issuecomment-964426481.
it would be enough to mimic only [] for almost all cases
This adds back the Lexer::Elem#[] and Lexer::State#[] and adds deprecation warnings for them.
Deprecate
Lexer::Elem#[]andLexer::State#[]Discussed in https://github.com/ruby/ruby/pull/5093#issuecomment-964426481.
This adds back the
Lexer::Elem#[]andLexer::State#[]and adds deprecation warnings for them.