Skip to content

Commit

Permalink
feat(rome_js_parser): EcmaScript @decorators rome#4252
Browse files Browse the repository at this point in the history
  • Loading branch information
denbezrukov committed Apr 19, 2023
1 parent fe9ce3f commit 67d61aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xtask/codegen/src/generate_bindings.rs
Expand Up @@ -201,6 +201,7 @@ pub(crate) fn generate_workspace_bindings(mode: Mode) -> Result<()> {
export = export.with_leading_trivia(trivia);
}
AnyJsModuleItem::JsExport(make::js_export(
make::js_decorator_list(std::iter::empty()),
export,
AnyJsExportClause::AnyJsDeclarationClause(match decl {
AnyJsDeclaration::JsClassDeclaration(decl) => {
Expand Down Expand Up @@ -306,6 +307,7 @@ pub(crate) fn generate_workspace_bindings(mode: Mode) -> Result<()> {
));

items.push(AnyJsModuleItem::JsExport(make::js_export(
make::js_decorator_list(std::iter::empty()),
make::token(T![export]),
AnyJsExportClause::AnyJsDeclarationClause(AnyJsDeclarationClause::TsInterfaceDeclaration(
make::ts_interface_declaration(
Expand All @@ -322,6 +324,7 @@ pub(crate) fn generate_workspace_bindings(mode: Mode) -> Result<()> {
let member_separators = (0..member_declarations.len()).map(|_| make::token(T![,]));

items.push(AnyJsModuleItem::JsExport(make::js_export(
make::js_decorator_list(std::iter::empty()),
make::token(T![export]),
AnyJsExportClause::AnyJsDeclarationClause(AnyJsDeclarationClause::JsFunctionDeclaration(
make::js_function_declaration(
Expand Down

0 comments on commit 67d61aa

Please sign in to comment.