swc_ecma_quote_macros/ast/decl.rs
1use swc_ecma_ast::*;
2
3impl_enum!(
4 Decl,
5 [
6 Class,
7 Fn,
8 Var,
9 TsInterface,
10 TsTypeAlias,
11 TsEnum,
12 TsModule,
13 Using
14 ]
15);
16
17impl_struct!(ClassDecl, [ident, declare, class]);
18impl_struct!(FnDecl, [ident, declare, function]);
19impl_struct!(VarDecl, [span, ctxt, kind, declare, decls]);
20impl_struct!(VarDeclarator, [span, name, init, definite]);
21impl_struct!(UsingDecl, [span, is_await, decls]);