DanielXMoore / Civet

A TypeScript superset that favors more types and less typing
https://civet.dev
MIT License
1.33k stars 28 forks source link

Improve ASI algorithm #1170

Closed edemaine closed 2 months ago

edemaine commented 2 months ago

Fixes #1169

edemaine commented 2 months ago

It is a special kind of block, with e.g. assignments. I actually don't know what happens if you pit function calls in there. Certainly methods are special. If it ends up being a problem, we can certainly complicate the ASI code to consider multiple block-like things. But e.g. the new ampersand code in working on probably also wants class bodies to be considered blocks.