If we have an identifier that follows a method name like:
def foo bar
Ripper will mark bar as END|LABEL if there is a local in a parent scope named bar because it hasn’t pushed the local table yet. We do this more accurately, so we need to allow comparing against both END and END|LABEL.
# File lib/yarp/lex_compat.rb, line 256 def ==(other) (self[0...-1] == other[0...-1]) && ( (other == Ripper::EXPR_END) || (other == Ripper::EXPR_END | Ripper::EXPR_LABEL) ) end