1/*
2 * Copyright (c) 2024 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16#include "JSCompiler.h"
17
18namespace ark::es2panda::compiler {
19
20// from as folder
21void JSCompiler::Compile([[maybe_unused]] const ir::NamedType *node) const
22{
23    UNREACHABLE();
24}
25
26void JSCompiler::Compile([[maybe_unused]] const ir::PrefixAssertionExpression *expr) const
27{
28    UNREACHABLE();
29}
30
31void JSCompiler::Compile([[maybe_unused]] const ir::ClassProperty *st) const
32{
33    UNREACHABLE();
34}
35
36void JSCompiler::Compile([[maybe_unused]] const ir::ClassStaticBlock *st) const
37{
38    UNREACHABLE();
39}
40
41void JSCompiler::Compile([[maybe_unused]] const ir::Decorator *st) const
42{
43    UNREACHABLE();
44}
45
46void JSCompiler::Compile([[maybe_unused]] const ir::MethodDefinition *node) const
47{
48    UNREACHABLE();
49}
50
51void JSCompiler::Compile([[maybe_unused]] const ir::Property *expr) const
52{
53    UNREACHABLE();
54}
55
56void JSCompiler::Compile([[maybe_unused]] const ir::ScriptFunction *node) const
57{
58    UNREACHABLE();
59}
60
61void JSCompiler::Compile([[maybe_unused]] const ir::SpreadElement *expr) const
62{
63    UNREACHABLE();
64}
65
66void JSCompiler::Compile([[maybe_unused]] const ir::TemplateElement *expr) const
67{
68    UNREACHABLE();
69}
70
71void JSCompiler::Compile([[maybe_unused]] const ir::TSIndexSignature *node) const
72{
73    UNREACHABLE();
74}
75
76void JSCompiler::Compile([[maybe_unused]] const ir::TSMethodSignature *node) const
77{
78    UNREACHABLE();
79}
80
81void JSCompiler::Compile([[maybe_unused]] const ir::TSPropertySignature *node) const
82{
83    UNREACHABLE();
84}
85
86void JSCompiler::Compile([[maybe_unused]] const ir::TSSignatureDeclaration *node) const
87{
88    UNREACHABLE();
89}
90// from ets folder
91void JSCompiler::Compile([[maybe_unused]] const ir::ETSScript *expr) const
92{
93    UNREACHABLE();
94}
95
96void JSCompiler::Compile([[maybe_unused]] const ir::ETSClassLiteral *expr) const
97{
98    UNREACHABLE();
99}
100
101void JSCompiler::Compile([[maybe_unused]] const ir::ETSFunctionType *expr) const
102{
103    UNREACHABLE();
104}
105
106void JSCompiler::Compile([[maybe_unused]] const ir::ETSTuple *expr) const
107{
108    UNREACHABLE();
109}
110
111void JSCompiler::Compile([[maybe_unused]] const ir::ETSImportDeclaration *node) const
112{
113    UNREACHABLE();
114}
115
116void JSCompiler::Compile([[maybe_unused]] const ir::ETSReExportDeclaration *node) const
117{
118    UNREACHABLE();
119}
120
121void JSCompiler::Compile([[maybe_unused]] const ir::ETSLaunchExpression *expr) const
122{
123    UNREACHABLE();
124}
125
126void JSCompiler::Compile([[maybe_unused]] const ir::ETSNewArrayInstanceExpression *expr) const
127{
128    UNREACHABLE();
129}
130
131void JSCompiler::Compile([[maybe_unused]] const ir::ETSNewClassInstanceExpression *expr) const
132{
133    UNREACHABLE();
134}
135
136void JSCompiler::Compile([[maybe_unused]] const ir::ETSNewMultiDimArrayInstanceExpression *expr) const
137{
138    UNREACHABLE();
139}
140
141void JSCompiler::Compile([[maybe_unused]] const ir::ETSPackageDeclaration *expr) const
142{
143    UNREACHABLE();
144}
145
146void JSCompiler::Compile([[maybe_unused]] const ir::ETSParameterExpression *expr) const
147{
148    UNREACHABLE();
149}
150
151void JSCompiler::Compile([[maybe_unused]] const ir::ETSPrimitiveType *expr) const
152{
153    UNREACHABLE();
154}
155
156void JSCompiler::Compile([[maybe_unused]] const ir::ETSStructDeclaration *node) const
157{
158    UNREACHABLE();
159}
160
161void JSCompiler::Compile([[maybe_unused]] const ir::ETSTypeReference *expr) const
162{
163    UNREACHABLE();
164}
165
166void JSCompiler::Compile([[maybe_unused]] const ir::ETSTypeReferencePart *expr) const
167{
168    UNREACHABLE();
169}
170
171void JSCompiler::Compile([[maybe_unused]] const ir::ETSNullType *node) const
172{
173    UNREACHABLE();
174}
175
176void JSCompiler::Compile([[maybe_unused]] const ir::ETSUndefinedType *node) const
177{
178    UNREACHABLE();
179}
180
181void JSCompiler::Compile([[maybe_unused]] const ir::ETSStringLiteralType *node) const
182{
183    UNREACHABLE();
184}
185
186void JSCompiler::Compile([[maybe_unused]] const ir::ETSUnionType *node) const
187{
188    UNREACHABLE();
189}
190
191void JSCompiler::Compile([[maybe_unused]] const ir::ETSWildcardType *expr) const
192{
193    UNREACHABLE();
194}
195
196void JSCompiler::Compile([[maybe_unused]] const ir::BlockExpression *expr) const
197{
198    UNREACHABLE();
199}
200
201void JSCompiler::Compile([[maybe_unused]] const ir::OpaqueTypeNode *node) const
202{
203    UNREACHABLE();
204}
205
206void JSCompiler::Compile([[maybe_unused]] const ir::OmittedExpression *expr) const
207{
208    UNREACHABLE();
209}
210
211void JSCompiler::Compile([[maybe_unused]] const ir::CharLiteral *expr) const
212{
213    UNREACHABLE();
214}
215
216void JSCompiler::Compile([[maybe_unused]] const ir::UndefinedLiteral *expr) const
217{
218    UNREACHABLE();
219}
220
221void JSCompiler::Compile([[maybe_unused]] const ir::ExportSpecifier *st) const
222{
223    UNREACHABLE();
224}
225
226void JSCompiler::Compile([[maybe_unused]] const ir::ImportDefaultSpecifier *st) const
227{
228    UNREACHABLE();
229}
230
231void JSCompiler::Compile([[maybe_unused]] const ir::ImportNamespaceSpecifier *st) const
232{
233    UNREACHABLE();
234}
235
236void JSCompiler::Compile([[maybe_unused]] const ir::ImportSpecifier *st) const
237{
238    UNREACHABLE();
239}
240// Compile methods for STATEMENTS in alphabetical order
241void JSCompiler::Compile([[maybe_unused]] const ir::AssertStatement *st) const
242{
243    UNREACHABLE();
244}
245
246void JSCompiler::Compile([[maybe_unused]] const ir::SwitchCaseStatement *st) const
247{
248    UNREACHABLE();
249}
250
251// from ts folder
252void JSCompiler::Compile([[maybe_unused]] const ir::TSAnyKeyword *node) const
253{
254    UNREACHABLE();
255}
256
257void JSCompiler::Compile([[maybe_unused]] const ir::TSArrayType *node) const
258{
259    UNREACHABLE();
260}
261
262void JSCompiler::Compile([[maybe_unused]] const ir::TSAsExpression *expr) const
263{
264    UNREACHABLE();
265}
266
267void JSCompiler::Compile([[maybe_unused]] const ir::TSBigintKeyword *node) const
268{
269    UNREACHABLE();
270}
271
272void JSCompiler::Compile([[maybe_unused]] const ir::TSBooleanKeyword *node) const
273{
274    UNREACHABLE();
275}
276
277void JSCompiler::Compile([[maybe_unused]] const ir::TSClassImplements *expr) const
278{
279    UNREACHABLE();
280}
281
282void JSCompiler::Compile([[maybe_unused]] const ir::TSConditionalType *node) const
283{
284    UNREACHABLE();
285}
286
287void JSCompiler::Compile([[maybe_unused]] const ir::TSConstructorType *node) const
288{
289    UNREACHABLE();
290}
291
292void JSCompiler::Compile([[maybe_unused]] const ir::TSEnumDeclaration *st) const
293{
294    UNREACHABLE();
295}
296
297void JSCompiler::Compile([[maybe_unused]] const ir::TSEnumMember *st) const
298{
299    UNREACHABLE();
300}
301
302void JSCompiler::Compile([[maybe_unused]] const ir::TSExternalModuleReference *expr) const
303{
304    UNREACHABLE();
305}
306
307void JSCompiler::Compile([[maybe_unused]] const ir::TSFunctionType *node) const
308{
309    UNREACHABLE();
310}
311
312void JSCompiler::Compile([[maybe_unused]] const ir::TSImportEqualsDeclaration *st) const
313{
314    UNREACHABLE();
315}
316
317void JSCompiler::Compile([[maybe_unused]] const ir::TSImportType *node) const
318{
319    UNREACHABLE();
320}
321
322void JSCompiler::Compile([[maybe_unused]] const ir::TSIndexedAccessType *node) const
323{
324    UNREACHABLE();
325}
326
327void JSCompiler::Compile([[maybe_unused]] const ir::TSInferType *node) const
328{
329    UNREACHABLE();
330}
331
332void JSCompiler::Compile([[maybe_unused]] const ir::TSInterfaceBody *expr) const
333{
334    UNREACHABLE();
335}
336
337void JSCompiler::Compile([[maybe_unused]] const ir::TSInterfaceDeclaration *st) const
338{
339    UNREACHABLE();
340}
341
342void JSCompiler::Compile([[maybe_unused]] const ir::TSInterfaceHeritage *expr) const
343{
344    UNREACHABLE();
345}
346
347void JSCompiler::Compile([[maybe_unused]] const ir::TSIntersectionType *node) const
348{
349    UNREACHABLE();
350}
351
352void JSCompiler::Compile([[maybe_unused]] const ir::TSLiteralType *node) const
353{
354    UNREACHABLE();
355}
356
357void JSCompiler::Compile([[maybe_unused]] const ir::TSMappedType *node) const
358{
359    UNREACHABLE();
360}
361
362void JSCompiler::Compile([[maybe_unused]] const ir::TSModuleBlock *st) const
363{
364    UNREACHABLE();
365}
366
367void JSCompiler::Compile([[maybe_unused]] const ir::TSModuleDeclaration *st) const
368{
369    UNREACHABLE();
370}
371
372void JSCompiler::Compile([[maybe_unused]] const ir::TSNamedTupleMember *node) const
373{
374    UNREACHABLE();
375}
376
377void JSCompiler::Compile([[maybe_unused]] const ir::TSNeverKeyword *node) const
378{
379    UNREACHABLE();
380}
381
382void JSCompiler::Compile([[maybe_unused]] const ir::TSNonNullExpression *expr) const
383{
384    UNREACHABLE();
385}
386
387void JSCompiler::Compile([[maybe_unused]] const ir::TSNullKeyword *node) const
388{
389    UNREACHABLE();
390}
391
392void JSCompiler::Compile([[maybe_unused]] const ir::TSNumberKeyword *node) const
393{
394    UNREACHABLE();
395}
396
397void JSCompiler::Compile([[maybe_unused]] const ir::TSObjectKeyword *node) const
398{
399    UNREACHABLE();
400}
401
402void JSCompiler::Compile([[maybe_unused]] const ir::TSParameterProperty *expr) const
403{
404    UNREACHABLE();
405}
406
407void JSCompiler::Compile([[maybe_unused]] const ir::TSParenthesizedType *node) const
408{
409    UNREACHABLE();
410}
411
412void JSCompiler::Compile([[maybe_unused]] const ir::TSQualifiedName *expr) const
413{
414    UNREACHABLE();
415}
416
417void JSCompiler::Compile([[maybe_unused]] const ir::TSStringKeyword *node) const
418{
419    UNREACHABLE();
420}
421
422void JSCompiler::Compile([[maybe_unused]] const ir::TSThisType *node) const
423{
424    UNREACHABLE();
425}
426
427void JSCompiler::Compile([[maybe_unused]] const ir::TSTupleType *node) const
428{
429    UNREACHABLE();
430}
431
432void JSCompiler::Compile([[maybe_unused]] const ir::TSTypeAliasDeclaration *st) const
433{
434    UNREACHABLE();
435}
436
437void JSCompiler::Compile([[maybe_unused]] const ir::TSTypeAssertion *expr) const
438{
439    UNREACHABLE();
440}
441
442void JSCompiler::Compile([[maybe_unused]] const ir::TSTypeLiteral *node) const
443{
444    UNREACHABLE();
445}
446
447void JSCompiler::Compile([[maybe_unused]] const ir::TSTypeOperator *node) const
448{
449    UNREACHABLE();
450}
451
452void JSCompiler::Compile([[maybe_unused]] const ir::TSTypeParameter *expr) const
453{
454    UNREACHABLE();
455}
456
457void JSCompiler::Compile([[maybe_unused]] const ir::TSTypeParameterDeclaration *expr) const
458{
459    UNREACHABLE();
460}
461
462void JSCompiler::Compile([[maybe_unused]] const ir::TSTypeParameterInstantiation *expr) const
463{
464    UNREACHABLE();
465}
466
467void JSCompiler::Compile([[maybe_unused]] const ir::TSTypePredicate *node) const
468{
469    UNREACHABLE();
470}
471
472void JSCompiler::Compile([[maybe_unused]] const ir::TSTypeQuery *node) const
473{
474    UNREACHABLE();
475}
476
477void JSCompiler::Compile([[maybe_unused]] const ir::TSTypeReference *node) const
478{
479    UNREACHABLE();
480}
481
482void JSCompiler::Compile([[maybe_unused]] const ir::TSUndefinedKeyword *node) const
483{
484    UNREACHABLE();
485}
486
487void JSCompiler::Compile([[maybe_unused]] const ir::TSUnionType *node) const
488{
489    UNREACHABLE();
490}
491
492void JSCompiler::Compile([[maybe_unused]] const ir::TSUnknownKeyword *node) const
493{
494    UNREACHABLE();
495}
496
497void JSCompiler::Compile([[maybe_unused]] const ir::TSVoidKeyword *node) const
498{
499    UNREACHABLE();
500}
501
502void JSCompiler::Compile([[maybe_unused]] const ir::DummyNode *node) const
503{
504    UNREACHABLE();
505}
506
507void JSCompiler::Compile([[maybe_unused]] const ir::NamespaceDeclaration *st) const
508{
509    UNREACHABLE();
510}
511
512void JSCompiler::Compile([[maybe_unused]] const ir::NamespaceDefinition *st) const
513{
514    UNREACHABLE();
515}
516}  // namespace ark::es2panda::compiler
517