Skip to content

Conversation

@sam-goodwin
Copy link
Owner

@sam-goodwin sam-goodwin commented Aug 6, 2022

Partial #374
Closes #397

Adds support for the following syntax:

for await (const a of b)
  • rest parameter declarations
function foo(...rest) {}
  • refactor: remove redundant clone functions and add missing validation to nodes
  • refactor TemplateExpr to use TemplateHead, TemplateSpan, TemplateMiddle, TemplateTail and remove QuasiString.
  • add label to BreakStmt and ContinueStmt
  • properly parse label in LabelledStmt, change label to be an Identiifer
  • add expr to SwitchStmt
  • update ReturnStmt.expr to be optional AST: ReturnStmt.expr should be optional #397

@netlify
Copy link

netlify bot commented Aug 6, 2022

Deploy Preview for effortless-malabi-1c3e77 ready!

Name Link
🔨 Latest commit 76775b9
🔍 Latest deploy log https://app.netlify.com/sites/effortless-malabi-1c3e77/deploys/62f06c4737d704000967c716
😎 Deploy Preview https://deploy-preview-389--effortless-malabi-1c3e77.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Collaborator

@thantos thantos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we fail the transpiler when these flags are true?

@sam-goodwin sam-goodwin requested a review from thantos August 6, 2022 02:16
@sam-goodwin
Copy link
Owner Author

Should we fail the transpiler when these flags are true?

Done.

@sam-goodwin sam-goodwin requested a review from thantos August 7, 2022 06:08
@sam-goodwin sam-goodwin changed the title feat: add isAwait to ForOfStmt and isRest to ParameterDecl feat: add isAwait to ForOfStmt and isRest to ParameterDecl, fix TemplateExpr Aug 8, 2022
@sam-goodwin sam-goodwin merged commit d32dec4 into main Aug 8, 2022
@sam-goodwin sam-goodwin deleted the samg-missing-ast branch August 8, 2022 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AST: ReturnStmt.expr should be optional

3 participants