1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
use super::{Emitter, Result};
use swc_ecma_ast::*;
use swc_ecma_codegen_macros::emitter;

impl<'a> Emitter<'a> {
    #[emitter]
    pub fn emit_pat_or_ts_param_prop(&mut self, n: &PatOrTsParamProp) -> Result {
        match *n {
            PatOrTsParamProp::Pat(ref n) => emit!(n),
            PatOrTsParamProp::TsParamProp(ref n) => emit!(n),
        }
    }

    #[emitter]
    pub fn emit_ts_array_type(&mut self, n: &TsArrayType) -> Result {
        unimplemented!("emit_ts_array_type")
    }

    #[emitter]
    pub fn emit_ts_as_expr(&mut self, n: &TsAsExpr) -> Result {
        unimplemented!("emit_ts_as_expr")
    }

    #[emitter]
    pub fn emit_ts_call_signature_decl(&mut self, n: &TsCallSignatureDecl) -> Result {
        unimplemented!("emit_ts_call_signature_decl")
    }

    #[emitter]
    pub fn emit_ts_cond_type(&mut self, n: &TsConditionalType) -> Result {
        unimplemented!("emit_ts_cond_type")
    }

    #[emitter]
    pub fn emit_ts_constructor_signature_decl(&mut self, n: &TsConstructSignatureDecl) -> Result {
        unimplemented!("emit_ts_constructor_signature_decl")
    }

    #[emitter]
    pub fn emit_ts_constructor_type(&mut self, n: &TsConstructorType) -> Result {
        unimplemented!("emit_ts_constructor_type")
    }

    #[emitter]
    pub fn emit_ts_entity_name(&mut self, n: &TsEntityName) -> Result {
        unimplemented!("emit_ts_entity_name")
    }

    #[emitter]
    pub fn emit_ts_enum_decl(&mut self, n: &TsEnumDecl) -> Result {
        unimplemented!("emit_ts_enum_decl")
    }

    #[emitter]
    pub fn emit_ts_enum_member(&mut self, n: &TsEnumMember) -> Result {
        unimplemented!("emit_ts_enum_member")
    }

    #[emitter]
    pub fn emit_ts_enum_member_id(&mut self, n: &TsEnumMemberId) -> Result {
        unimplemented!("emit_ts_enum_member_id")
    }

    #[emitter]
    pub fn emit_ts_export_assignment(&mut self, n: &TsExportAssignment) -> Result {
        unimplemented!("emit_ts_export_assignment")
    }

    #[emitter]
    pub fn emit_ts_expr_with_type_args(&mut self, n: &TsExprWithTypeArgs) -> Result {
        unimplemented!("emit_ts_expr_with_type_args")
    }

    #[emitter]
    pub fn emit_ts_external_module_ref(&mut self, n: &TsExternalModuleRef) -> Result {
        unimplemented!("emit_ts_external_module_ref")
    }

    #[emitter]
    pub fn emit_ts_fn_or_constructor_type(&mut self, n: &TsFnOrConstructorType) -> Result {
        unimplemented!("emit_ts_fn_or_constructor_type")
    }

    #[emitter]
    pub fn emit_ts_fn_param(&mut self, n: &TsFnParam) -> Result {
        unimplemented!("emit_ts_fn_param")
    }

    #[emitter]
    pub fn emit_ts_fn_type(&mut self, n: &TsFnType) -> Result {
        unimplemented!("emit_ts_fn_type")
    }

    #[emitter]
    pub fn emit_ts_import_equals_decl(&mut self, n: &TsImportEqualsDecl) -> Result {
        unimplemented!("emit_ts_import_equals_decl")
    }

    #[emitter]
    pub fn emit_ts_index_signature(&mut self, n: &TsIndexSignature) -> Result {
        unimplemented!("emit_ts_index_signature")
    }

    #[emitter]
    pub fn emit_ts_index_accessed_type(&mut self, n: &TsIndexedAccessType) -> Result {
        unimplemented!("emit_ts_index_accessed_type")
    }

    #[emitter]
    pub fn emit_ts_infer_type(&mut self, n: &TsInferType) -> Result {
        unimplemented!("emit_ts_infer_type")
    }

    #[emitter]
    pub fn emit_ts_interface_body(&mut self, n: &TsInterfaceBody) -> Result {
        unimplemented!("emit_ts_interface_body")
    }

    #[emitter]
    pub fn emit_ts_interface_decl(&mut self, n: &TsInterfaceDecl) -> Result {
        unimplemented!("emit_ts_interface_decl")
    }

    #[emitter]
    pub fn emit_ts_intersection_type(&mut self, n: &TsIntersectionType) -> Result {
        unimplemented!("emit_ts_intersection_type")
    }

    #[emitter]
    pub fn emit_ts_keyword_type(&mut self, n: &TsKeywordType) -> Result {
        unimplemented!("emit_ts_keyword_type")
    }

    #[emitter]
    pub fn emit_ts_lit(&mut self, n: &TsLit) -> Result {
        unimplemented!("emit_ts_lit")
    }

    #[emitter]
    pub fn emit_ts_lit_type(&mut self, n: &TsLitType) -> Result {
        unimplemented!("emit_ts_lit_type")
    }

    #[emitter]
    pub fn emit_ts_mapped_type(&mut self, n: &TsMappedType) -> Result {
        unimplemented!("emit_ts_mapped_type")
    }

    #[emitter]
    pub fn emit_ts_method_signature(&mut self, n: &TsMethodSignature) -> Result {
        unimplemented!("emit_ts_method_signature")
    }

    #[emitter]
    pub fn emit_ts_module_block(&mut self, n: &TsModuleBlock) -> Result {
        unimplemented!("emit_ts_module_block")
    }

    #[emitter]
    pub fn emit_ts_module_decl(&mut self, n: &TsModuleDecl) -> Result {
        unimplemented!("emit_ts_module_decl")
    }

    #[emitter]
    pub fn emit_ts_module_name(&mut self, n: &TsModuleName) -> Result {
        unimplemented!("emit_ts_module_name")
    }

    #[emitter]
    pub fn emit_ts_module_ref(&mut self, n: &TsModuleRef) -> Result {
        unimplemented!("emit_ts_module_ref")
    }

    #[emitter]
    pub fn emit_ts_ns_body(&mut self, n: &TsNamespaceBody) -> Result {
        unimplemented!("emit_ts_ns_body")
    }

    #[emitter]
    pub fn emit_ts_ns_decl(&mut self, n: &TsNamespaceDecl) -> Result {
        unimplemented!("emit_ts_ns_decl")
    }

    #[emitter]
    pub fn emit_ts_ns_export_decl(&mut self, n: &TsNamespaceExportDecl) -> Result {
        unimplemented!("emit_ts_ns_export_decl")
    }

    #[emitter]
    pub fn emit_ts_non_null_expr(&mut self, n: &TsNonNullExpr) -> Result {
        unimplemented!("emit_ts_non_null_expr")
    }

    #[emitter]
    pub fn emit_ts_optional_type(&mut self, n: &TsOptionalType) -> Result {
        unimplemented!("emit_ts_optional_type")
    }

    #[emitter]
    pub fn emit_ts_param_prop(&mut self, n: &TsParamProp) -> Result {
        unimplemented!("emit_ts_param_prop")
    }

    #[emitter]
    pub fn emit_ts_param_prop_param(&mut self, n: &TsParamPropParam) -> Result {
        unimplemented!("emit_ts_param_prop_param")
    }

    #[emitter]
    pub fn emit_ts_paren_type(&mut self, n: &TsParenthesizedType) -> Result {
        unimplemented!("emit_ts_paren_type")
    }

    #[emitter]
    pub fn emit_ts_property_signature(&mut self, n: &TsPropertySignature) -> Result {
        unimplemented!("emit_ts_property_signature")
    }

    #[emitter]
    pub fn emit_ts_qualified_name(&mut self, n: &TsQualifiedName) -> Result {
        unimplemented!("emit_ts_qualified_name")
    }

    #[emitter]
    pub fn emit_ts_rest_type(&mut self, n: &TsRestType) -> Result {
        unimplemented!("emit_ts_rest_type")
    }

    #[emitter]
    pub fn emit_ts_signature_decl(&mut self, n: &TsSignatureDecl) -> Result {
        unimplemented!("emit_ts_signature_decl")
    }

    #[emitter]
    pub fn emit_ts_this_type(&mut self, n: &TsThisType) -> Result {
        unimplemented!("emit_ts_this_type")
    }

    #[emitter]
    pub fn emit_ts_this_type_or_ident(&mut self, n: &TsThisTypeOrIdent) -> Result {
        unimplemented!("emit_ts_this_type_or_ident")
    }

    #[emitter]
    pub fn emit_ts_tuple_type(&mut self, n: &TsTupleType) -> Result {
        unimplemented!("emit_ts_tuple_type")
    }

    #[emitter]
    pub fn emit_ts_type(&mut self, n: &TsType) -> Result {
        unimplemented!("emit_ts_type")
    }

    #[emitter]
    pub fn emit_ts_type_alias_decl(&mut self, n: &TsTypeAliasDecl) -> Result {
        unimplemented!("emit_ts_type_alias_decl")
    }

    #[emitter]
    pub fn emit_ts_type_ann(&mut self, n: &TsTypeAnn) -> Result {
        unimplemented!("emit_ts_type_ann")
    }

    #[emitter]
    pub fn emit_ts_type_assertion(&mut self, n: &TsTypeAssertion) -> Result {
        unimplemented!("emit_ts_type_assertion")
    }

    #[emitter]
    pub fn emit_ts_const_assertion(&mut self, n: &TsConstAssertion) -> Result {
        unimplemented!("emit_ts_const_assertion")
    }

    #[emitter]
    pub fn emit_ts_type_cast_expr(&mut self, n: &TsTypeCastExpr) -> Result {
        unimplemented!("emit_ts_type_cast_expr")
    }

    #[emitter]
    pub fn emit_ts_type_element(&mut self, n: &TsTypeElement) -> Result {
        unimplemented!("emit_ts_type_element")
    }

    #[emitter]
    pub fn emit_ts_type_lit(&mut self, n: &TsTypeLit) -> Result {
        unimplemented!("emit_ts_type_lit")
    }

    #[emitter]
    pub fn emit_ts_type_operator(&mut self, n: &TsTypeOperator) -> Result {
        unimplemented!("emit_ts_type_operator")
    }

    #[emitter]
    pub fn emit_ts_type_param(&mut self, n: &TsTypeParam) -> Result {
        unimplemented!("emit_ts_type_param")
    }

    #[emitter]
    pub fn emit_ts_type_param_decl(&mut self, n: &TsTypeParamDecl) -> Result {
        unimplemented!("emit_ts_type_param_decl")
    }

    #[emitter]
    pub fn emit_ts_type_param_instantiation(&mut self, n: &TsTypeParamInstantiation) -> Result {
        unimplemented!("emit_ts_type_param_instantiation")
    }

    #[emitter]
    pub fn emit_ts_type_predicate(&mut self, n: &TsTypePredicate) -> Result {
        unimplemented!("emit_ts_type_predicate")
    }

    #[emitter]
    pub fn emit_ts_type_query(&mut self, n: &TsTypeQuery) -> Result {
        unimplemented!("emit_ts_type_query")
    }

    #[emitter]
    pub fn emit_ts_type_ref(&mut self, n: &TsTypeRef) -> Result {
        unimplemented!("emit_ts_type_ref")
    }

    #[emitter]
    pub fn emit_ts_union_or_intersection_type(&mut self, n: &TsUnionOrIntersectionType) -> Result {
        unimplemented!("emit_ts_union_or_intersection_type")
    }

    #[emitter]
    pub fn emit_ts_union_type(&mut self, n: &TsUnionType) -> Result {
        unimplemented!("emit_ts_union_type")
    }
}