Flowdock
method

get_end_token

Importance_1
v2_2_9 - Show latest stable - 0 notes - Class: Ruby
get_end_token(tk) public

Little hack going on here. In the statement:

f = 2*(1+yield)

We see the RPAREN as the next token, so we need to exit early. This still won’t catch all cases (such as “a = yield + 1”

Show source
Register or log in to add new notes.