Closed cristianoc closed 2 years ago
@IwanKaramazow would you check that there's nothing wrong with this fix in the heuristic for recognising es6 arrow functions? Is the early recognition of ~
just a perf shortcut, or does it have a deeper meaning?
Is the early recognition of ~ just a perf shortcut, or does it have a deeper meaning?
Perf shortcut. There wasn't a case where (~
didn't mean an arrow expression.
Your fix is correct. Upon finding the async
keyword it will now search for the closing )
and then look for an =>
to confirm if we're in a arrow expression.
…belled arguments.
Fixes https://github.com/rescript-lang/syntax/issues/707