Skip to content

Add AST post-processing (desugaring) stage #2141

Open
@MaxGraey

Description

@MaxGraey

This extra stage run immediately after AST creation and process following tasks:

  • Desugaring for top-level non-exported to host, non-mutable (const) FunctionExpression to FunctionDeclaration with preserving order.
  • Destructive assignment desugaring
  • Spread syntax desugaring
  • Variadic function desugaring
  • String enum desugaring (?)
  • Processing for custom (user-space) decorators

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions