Closed edemaine closed 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.
type: "ClassBody"
so completely ignored. Now they'retype: "BlockStatement"
withsubtype: "ClassBody"
(in case we need to know someday).switch
could now be eliminated, but I didn't try.Fixes #1169