Skip to content

Conversation

@alangpierce
Copy link
Member

Closes decaffeinate/decaffeinate#458
Closes decaffeinate/decaffeinate#461
Closes decaffeinate/decaffeinate#504

Just like OUTDENT and CALL_END tokens, close-curly-brace tokens can be generated
without having a real location, and if that position overlaps with a later
token, it can cause the AST to have bad location data. Just like the other two
token types, we now give } tokens the position of the previous real token,
which makes all AST nodes have reasonable locations.

Closes decaffeinate/decaffeinate#458
Closes decaffeinate/decaffeinate#461
Closes decaffeinate/decaffeinate#504

Just like OUTDENT and CALL_END tokens, close-curly-brace tokens can be generated
without having a real location, and if that position overlaps with a later
token, it can cause the AST to have bad location data. Just like the other two
token types, we now give `}` tokens the position of the previous real token,
which makes all AST nodes have reasonable locations.
alangpierce added a commit to alangpierce/coffeescript that referenced this pull request Oct 31, 2016
This is an upstream port of decaffeinate#10
See that PR for links to the issues that this fixes.

Just like OUTDENT and CALL_END tokens, close-curly-brace tokens can be generated
without having a real location, and if that position overlaps with a later
token, it can cause the AST to have bad location data. Just like the other two
token types, we now give `}` tokens the position of the previous real token,
which makes all AST nodes have reasonable locations.
@alangpierce alangpierce merged commit e6fb863 into decaffeinate:decaffeinate-fork-1.10.0 Oct 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant