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 "ETSCompiler.h" 17 18namespace ark::es2panda::compiler { 19 20void ETSCompiler::Compile([[maybe_unused]] const ir::NamedType *node) const 21{ 22 UNREACHABLE(); 23} 24 25void ETSCompiler::Compile([[maybe_unused]] const ir::PrefixAssertionExpression *expr) const 26{ 27 UNREACHABLE(); 28} 29 30void ETSCompiler::Compile([[maybe_unused]] const ir::ClassDefinition *node) const 31{ 32 UNREACHABLE(); 33} 34 35void ETSCompiler::Compile([[maybe_unused]] const ir::ClassStaticBlock *st) const 36{ 37 UNREACHABLE(); 38} 39 40void ETSCompiler::Compile([[maybe_unused]] const ir::Decorator *st) const 41{ 42 UNREACHABLE(); 43} 44 45void ETSCompiler::Compile([[maybe_unused]] const ir::MetaProperty *expr) const 46{ 47 UNREACHABLE(); 48} 49 50void ETSCompiler::Compile([[maybe_unused]] const ir::MethodDefinition *node) const 51{ 52 UNREACHABLE(); 53} 54 55void ETSCompiler::Compile([[maybe_unused]] const ir::Property *expr) const 56{ 57 UNREACHABLE(); 58} 59 60void ETSCompiler::Compile([[maybe_unused]] const ir::ScriptFunction *node) const 61{ 62 UNREACHABLE(); 63} 64 65void ETSCompiler::Compile([[maybe_unused]] const ir::SpreadElement *expr) const 66{ 67 UNREACHABLE(); 68} 69 70void ETSCompiler::Compile([[maybe_unused]] const ir::TSIndexSignature *node) const 71{ 72 UNREACHABLE(); 73} 74 75void ETSCompiler::Compile([[maybe_unused]] const ir::TSMethodSignature *node) const 76{ 77 UNREACHABLE(); 78} 79 80void ETSCompiler::Compile([[maybe_unused]] const ir::TSPropertySignature *node) const 81{ 82 UNREACHABLE(); 83} 84 85void ETSCompiler::Compile([[maybe_unused]] const ir::TSSignatureDeclaration *node) const 86{ 87 UNREACHABLE(); 88} 89 90void ETSCompiler::Compile([[maybe_unused]] const ir::ETSScript *node) const 91{ 92 UNREACHABLE(); 93} 94 95void ETSCompiler::Compile([[maybe_unused]] const ir::ETSTuple *node) const 96{ 97 UNREACHABLE(); 98} 99 100void ETSCompiler::Compile([[maybe_unused]] const ir::ETSImportDeclaration *node) const 101{ 102 UNREACHABLE(); 103} 104 105void ETSCompiler::Compile([[maybe_unused]] const ir::ETSPackageDeclaration *st) const 106{ 107 UNREACHABLE(); 108} 109 110void ETSCompiler::Compile([[maybe_unused]] const ir::ETSPrimitiveType *node) const 111{ 112 UNREACHABLE(); 113} 114 115void ETSCompiler::Compile([[maybe_unused]] const ir::ETSStructDeclaration *node) const 116{ 117 UNREACHABLE(); 118} 119 120void ETSCompiler::Compile([[maybe_unused]] const ir::ETSNullType *node) const 121{ 122 UNREACHABLE(); 123} 124 125void ETSCompiler::Compile([[maybe_unused]] const ir::ETSUndefinedType *node) const 126{ 127 UNREACHABLE(); 128} 129 130void ETSCompiler::Compile([[maybe_unused]] const ir::ETSStringLiteralType *node) const 131{ 132 UNREACHABLE(); 133} 134 135void ETSCompiler::Compile([[maybe_unused]] const ir::ETSUnionType *node) const 136{ 137 UNREACHABLE(); 138} 139 140void ETSCompiler::Compile([[maybe_unused]] const ir::ArrowFunctionExpression *expr) const 141{ 142 // Should have been handled by LambdaLowering 143 UNREACHABLE(); 144} 145 146void ETSCompiler::Compile([[maybe_unused]] const ir::ChainExpression *expr) const 147{ 148 UNREACHABLE(); 149} 150 151void ETSCompiler::Compile([[maybe_unused]] const ir::ClassExpression *expr) const 152{ 153 UNREACHABLE(); 154} 155 156void ETSCompiler::Compile([[maybe_unused]] const ir::ETSReExportDeclaration *stmt) const 157{ 158 UNREACHABLE(); 159} 160 161void ETSCompiler::Compile([[maybe_unused]] const ir::DirectEvalExpression *expr) const 162{ 163 UNREACHABLE(); 164} 165 166void ETSCompiler::Compile([[maybe_unused]] const ir::FunctionExpression *expr) const 167{ 168 UNREACHABLE(); 169} 170 171void ETSCompiler::Compile([[maybe_unused]] const ir::ImportExpression *expr) const 172{ 173 UNREACHABLE(); 174} 175 176void ETSCompiler::Compile([[maybe_unused]] const ir::NewExpression *expr) const 177{ 178 UNREACHABLE(); 179} 180 181void ETSCompiler::Compile([[maybe_unused]] const ir::OmittedExpression *expr) const 182{ 183 UNREACHABLE(); 184} 185 186void ETSCompiler::Compile([[maybe_unused]] const ir::OpaqueTypeNode *node) const 187{ 188 UNREACHABLE(); 189} 190 191void ETSCompiler::Compile([[maybe_unused]] const ir::TaggedTemplateExpression *expr) const 192{ 193 UNREACHABLE(); 194} 195 196void ETSCompiler::Compile([[maybe_unused]] const ir::UpdateExpression *expr) const 197{ 198 // Should have been handled by OpAssignment lowering. 199 UNREACHABLE(); 200} 201 202void ETSCompiler::Compile([[maybe_unused]] const ir::YieldExpression *expr) const 203{ 204 UNREACHABLE(); 205} 206 207void ETSCompiler::Compile([[maybe_unused]] const ir::RegExpLiteral *expr) const 208{ 209 UNREACHABLE(); 210} 211 212void ETSCompiler::Compile([[maybe_unused]] const ir::UndefinedLiteral *expr) const 213{ 214 UNREACHABLE(); 215} 216 217void ETSCompiler::Compile([[maybe_unused]] const ir::ExportAllDeclaration *st) const 218{ 219 UNREACHABLE(); 220} 221 222void ETSCompiler::Compile([[maybe_unused]] const ir::ExportDefaultDeclaration *st) const 223{ 224 UNREACHABLE(); 225} 226 227void ETSCompiler::Compile([[maybe_unused]] const ir::ExportNamedDeclaration *st) const 228{ 229 UNREACHABLE(); 230} 231 232void ETSCompiler::Compile([[maybe_unused]] const ir::ExportSpecifier *st) const 233{ 234 UNREACHABLE(); 235} 236 237void ETSCompiler::Compile([[maybe_unused]] const ir::ImportDeclaration *st) const 238{ 239 UNREACHABLE(); 240} 241 242void ETSCompiler::Compile([[maybe_unused]] const ir::ImportDefaultSpecifier *st) const 243{ 244 UNREACHABLE(); 245} 246 247void ETSCompiler::Compile([[maybe_unused]] const ir::ImportNamespaceSpecifier *st) const 248{ 249 UNREACHABLE(); 250} 251 252void ETSCompiler::Compile([[maybe_unused]] const ir::ImportSpecifier *st) const 253{ 254 UNREACHABLE(); 255} 256 257void ETSCompiler::Compile([[maybe_unused]] const ir::DebuggerStatement *st) const 258{ 259 UNREACHABLE(); 260} 261 262void ETSCompiler::Compile([[maybe_unused]] const ir::ForInStatement *st) const 263{ 264 UNREACHABLE(); 265} 266 267void ETSCompiler::Compile([[maybe_unused]] const ir::FunctionDeclaration *st) const 268{ 269 UNREACHABLE(); 270} 271 272void ETSCompiler::Compile([[maybe_unused]] const ir::SwitchCaseStatement *st) const 273{ 274 UNREACHABLE(); 275} 276 277void ETSCompiler::Compile([[maybe_unused]] const ir::TSAnyKeyword *node) const 278{ 279 UNREACHABLE(); 280} 281 282void ETSCompiler::Compile([[maybe_unused]] const ir::TSBigintKeyword *node) const 283{ 284 UNREACHABLE(); 285} 286 287void ETSCompiler::Compile([[maybe_unused]] const ir::TSBooleanKeyword *node) const 288{ 289 UNREACHABLE(); 290} 291 292void ETSCompiler::Compile([[maybe_unused]] const ir::TSClassImplements *expr) const 293{ 294 UNREACHABLE(); 295} 296 297void ETSCompiler::Compile([[maybe_unused]] const ir::TSConditionalType *node) const 298{ 299 UNREACHABLE(); 300} 301 302void ETSCompiler::Compile([[maybe_unused]] const ir::TSConstructorType *node) const 303{ 304 UNREACHABLE(); 305} 306 307void ETSCompiler::Compile([[maybe_unused]] const ir::TSEnumDeclaration *st) const 308{ 309 UNREACHABLE(); 310} 311 312void ETSCompiler::Compile([[maybe_unused]] const ir::TSEnumMember *st) const 313{ 314 UNREACHABLE(); 315} 316 317void ETSCompiler::Compile([[maybe_unused]] const ir::TSExternalModuleReference *expr) const 318{ 319 UNREACHABLE(); 320} 321 322void ETSCompiler::Compile([[maybe_unused]] const ir::TSFunctionType *node) const 323{ 324 UNREACHABLE(); 325} 326 327void ETSCompiler::Compile([[maybe_unused]] const ir::TSImportEqualsDeclaration *st) const 328{ 329 UNREACHABLE(); 330} 331 332void ETSCompiler::Compile([[maybe_unused]] const ir::TSImportType *node) const 333{ 334 UNREACHABLE(); 335} 336 337void ETSCompiler::Compile([[maybe_unused]] const ir::TSIndexedAccessType *node) const 338{ 339 UNREACHABLE(); 340} 341 342void ETSCompiler::Compile([[maybe_unused]] const ir::TSInferType *node) const 343{ 344 UNREACHABLE(); 345} 346 347void ETSCompiler::Compile([[maybe_unused]] const ir::TSInterfaceBody *expr) const 348{ 349 UNREACHABLE(); 350} 351 352void ETSCompiler::Compile([[maybe_unused]] const ir::TSInterfaceHeritage *expr) const 353{ 354 UNREACHABLE(); 355} 356 357void ETSCompiler::Compile([[maybe_unused]] const ir::TSIntersectionType *node) const 358{ 359 UNREACHABLE(); 360} 361 362void ETSCompiler::Compile([[maybe_unused]] const ir::TSLiteralType *node) const 363{ 364 UNREACHABLE(); 365} 366 367void ETSCompiler::Compile([[maybe_unused]] const ir::TSMappedType *node) const 368{ 369 UNREACHABLE(); 370} 371 372void ETSCompiler::Compile([[maybe_unused]] const ir::TSModuleBlock *st) const 373{ 374 UNREACHABLE(); 375} 376 377void ETSCompiler::Compile([[maybe_unused]] const ir::TSModuleDeclaration *st) const 378{ 379 UNREACHABLE(); 380} 381 382void ETSCompiler::Compile([[maybe_unused]] const ir::TSNamedTupleMember *node) const 383{ 384 UNREACHABLE(); 385} 386 387void ETSCompiler::Compile([[maybe_unused]] const ir::TSNeverKeyword *node) const 388{ 389 UNREACHABLE(); 390} 391 392void ETSCompiler::Compile([[maybe_unused]] const ir::TSNullKeyword *node) const 393{ 394 UNREACHABLE(); 395} 396 397void ETSCompiler::Compile([[maybe_unused]] const ir::TSNumberKeyword *node) const 398{ 399 UNREACHABLE(); 400} 401 402void ETSCompiler::Compile([[maybe_unused]] const ir::TSObjectKeyword *node) const 403{ 404 UNREACHABLE(); 405} 406 407void ETSCompiler::Compile([[maybe_unused]] const ir::TSParameterProperty *expr) const 408{ 409 UNREACHABLE(); 410} 411 412void ETSCompiler::Compile([[maybe_unused]] const ir::TSParenthesizedType *node) const 413{ 414 UNREACHABLE(); 415} 416 417void ETSCompiler::Compile([[maybe_unused]] const ir::TSQualifiedName *expr) const 418{ 419 UNREACHABLE(); 420} 421 422void ETSCompiler::Compile([[maybe_unused]] const ir::TSStringKeyword *node) const 423{ 424 UNREACHABLE(); 425} 426 427void ETSCompiler::Compile([[maybe_unused]] const ir::TSThisType *node) const 428{ 429 UNREACHABLE(); 430} 431 432void ETSCompiler::Compile([[maybe_unused]] const ir::TSTupleType *node) const 433{ 434 UNREACHABLE(); 435} 436 437void ETSCompiler::Compile([[maybe_unused]] const ir::TSTypeAssertion *expr) const 438{ 439 UNREACHABLE(); 440} 441 442void ETSCompiler::Compile([[maybe_unused]] const ir::TSTypeLiteral *node) const 443{ 444 UNREACHABLE(); 445} 446 447void ETSCompiler::Compile([[maybe_unused]] const ir::TSTypeOperator *node) const 448{ 449 UNREACHABLE(); 450} 451 452void ETSCompiler::Compile([[maybe_unused]] const ir::TSTypeParameter *expr) const 453{ 454 UNREACHABLE(); 455} 456 457void ETSCompiler::Compile([[maybe_unused]] const ir::TSTypeParameterDeclaration *expr) const 458{ 459 UNREACHABLE(); 460} 461 462void ETSCompiler::Compile([[maybe_unused]] const ir::TSTypeParameterInstantiation *expr) const 463{ 464 UNREACHABLE(); 465} 466 467void ETSCompiler::Compile([[maybe_unused]] const ir::TSTypePredicate *node) const 468{ 469 UNREACHABLE(); 470} 471 472void ETSCompiler::Compile([[maybe_unused]] const ir::TSTypeQuery *node) const 473{ 474 UNREACHABLE(); 475} 476 477void ETSCompiler::Compile([[maybe_unused]] const ir::TSTypeReference *node) const 478{ 479 UNREACHABLE(); 480} 481 482void ETSCompiler::Compile([[maybe_unused]] const ir::TSUndefinedKeyword *node) const 483{ 484 UNREACHABLE(); 485} 486 487void ETSCompiler::Compile([[maybe_unused]] const ir::TSUnionType *node) const 488{ 489 UNREACHABLE(); 490} 491 492void ETSCompiler::Compile([[maybe_unused]] const ir::TSUnknownKeyword *node) const 493{ 494 UNREACHABLE(); 495} 496 497void ETSCompiler::Compile([[maybe_unused]] const ir::TSVoidKeyword *node) const 498{ 499 UNREACHABLE(); 500} 501 502void ETSCompiler::Compile([[maybe_unused]] const ir::DummyNode *node) const 503{ 504 UNREACHABLE(); 505} 506 507void ETSCompiler::Compile([[maybe_unused]] const ir::NamespaceDeclaration *st) const 508{ 509 UNREACHABLE(); 510} 511 512void ETSCompiler::Compile([[maybe_unused]] const ir::NamespaceDefinition *st) const 513{ 514 UNREACHABLE(); 515} 516} // namespace ark::es2panda::compiler 517