[Swift] Undo parsing function calls with trailing closure #862
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Patches some type name bugs, addressing #861.
![2018-01-11 at 6 53 33 am](https://user-images.githubusercontent.com/5590046/34824731-b18b944c-f69d-11e7-82de-d58149a3e6cf.png)
![2018-01-11 at 7 04 02 am](https://user-images.githubusercontent.com/5590046/34824733-b3f9b9c0-f69d-11e7-9428-b185dc7bd9d9.png)
![2018-01-11 at 7 04 19 am](https://user-images.githubusercontent.com/5590046/34824736-b5420dd2-f69d-11e7-8b79-359a02107069.png)
Fixed examples:
Edit: after careful consideration, I decided to revert parsing function calls with trailing closure.
It's not possible to perfectly identify such function calls using the current lexer and the feature causes more harm than good.