denoland / deno_ast

Source text parsing, lexing, and AST related functionality for Deno
https://crates.io/crates/deno_ast
MIT License
146 stars 45 forks source link

feat: support decorator proposal #201

Closed bartlomieju closed 7 months ago

bartlomieju commented 7 months ago

This commit adds support for TC39's decorator proposal.

A new "EmitOptions::use_ts_decorators" field has been added that defaults to false. If users wish to use the TS decorators instead of decorator proposal, they should pass true for that field.