| /arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
| D | etsEnumType.h | 41 …explicit ETSEnumInterface(const ir::TSEnumDeclaration *enumDecl, UType ordinal, const ir::TSEnumMe… 191 …explicit ETSEnumType(const ir::TSEnumDeclaration *enumDecl, UType ordinal, const ir::TSEnumMember … 192 : ETSEnumInterface(enumDecl, ordinal, member, TypeFlag::ETS_ENUM) in ETSEnumInterface() argument 205 explicit ETSStringEnumType(const ir::TSEnumDeclaration *enumDecl, UType ordinal, 207 : ETSEnumInterface(enumDecl, ordinal, member, TypeFlag::ETS_STRING_ENUM) in ETSEnumInterface() argument
|
| D | etsEnumType.cpp | 26 ETSEnumInterface::ETSEnumInterface(const ir::TSEnumDeclaration *const enumDecl, UType ordinal, in ETSEnumInterface() argument 28 : Type(typeFlag), decl_(enumDecl), ordinal_ {ordinal}, member_(member) in ETSEnumInterface()
|
| /arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
| D | scopesInitPhase.cpp | 514 void ScopeInitTyped::VisitTSEnumDeclaration(ir::TSEnumDeclaration *enumDecl) in VisitTSEnumDeclaration() argument 516 util::StringView ident = FormInterfaceOrEnumDeclarationIdBinding(enumDecl->Key()); in VisitTSEnumDeclaration() 522 …decl = VarBinder()->AddTsDecl<varbinder::EnumLiteralDecl>(enumDecl->Start(), ident, enumDecl->IsCo… in VisitTSEnumDeclaration() 525 BindScopeNode(VarBinder()->GetScope()->AsLocalScope(), enumDecl); in VisitTSEnumDeclaration() 527 … (enumDecl->IsConst() ^ res->second->Declaration()->AsEnumLiteralDecl()->IsConst()) != 0) { in VisitTSEnumDeclaration() 528 auto loc = enumDecl->Key()->End(); in VisitTSEnumDeclaration() 530 VarBinder()->ThrowRedeclaration(loc, enumDecl->Key()->Name()); in VisitTSEnumDeclaration() 536 decl->BindNode(enumDecl); in VisitTSEnumDeclaration() 537 Iterate(enumDecl); in VisitTSEnumDeclaration() 894 void InitScopesPhaseETS::VisitTSEnumDeclaration(ir::TSEnumDeclaration *enumDecl) in VisitTSEnumDeclaration() argument [all …]
|
| D | scopesInitPhase.h | 214 void VisitTSEnumDeclaration(ir::TSEnumDeclaration *enumDecl) override; 342 void VisitTSEnumDeclaration(ir::TSEnumDeclaration *enumDecl) override;
|
| /arkcompiler/ets_frontend/ets2panda/checker/ets/ |
| D | typeCreation.cpp | 372 ETSEnumType *ETSChecker::CreateETSEnumType(ir::TSEnumDeclaration const *const enumDecl) in CreateETSEnumType() argument 374 varbinder::Variable *enumVar = enumDecl->Key()->Variable(); in CreateETSEnumType() 378 auto *const enumType = Allocator()->New<ETSEnumType>(enumDecl, ordinal++); in CreateETSEnumType() 384 …auto *const enumLiteralType = Allocator()->New<ETSEnumType>(enumDecl, ordinal++, member->AsTSEnumM… in CreateETSEnumType() 426 ETSStringEnumType *ETSChecker::CreateETSStringEnumType(ir::TSEnumDeclaration const *const enumDecl) in CreateETSStringEnumType() argument 428 varbinder::Variable *enumVar = enumDecl->Key()->Variable(); in CreateETSStringEnumType() 432 auto *const enumType = Allocator()->New<ETSStringEnumType>(enumDecl, ordinal++); in CreateETSStringEnumType() 439 Allocator()->New<ETSStringEnumType>(enumDecl, ordinal++, member->AsTSEnumMember()); in CreateETSStringEnumType()
|
| D | enum.cpp | 69 const ir::TSEnumDeclaration *const enumDecl, in MakeQualifiedIdentifier() argument 73 AppendParentNames(qualifiedName, enumDecl->Parent()); in MakeQualifiedIdentifier() 74 qualifiedName.Append(enumDecl->Key()->Name()); in MakeQualifiedIdentifier()
|
| D | helpers.cpp | 1334 auto const *const enumDecl = var->Declaration()->Node()->AsTSEnumDeclaration(); in GetTypeFromEnumReference() local 1335 …if (auto *const itemInit = enumDecl->Members().front()->AsTSEnumMember()->Init(); itemInit->IsNumb… in GetTypeFromEnumReference() 1336 return CreateETSEnumType(enumDecl); in GetTypeFromEnumReference() 1338 return CreateETSStringEnumType(enumDecl); in GetTypeFromEnumReference() 1340 ThrowTypeError("Invalid enumeration value type.", enumDecl->Start()); in GetTypeFromEnumReference()
|
| /arkcompiler/ets_frontend/ets2panda/util/ |
| D | declgenEts2Ts.cpp | 413 void TSDeclGen::GenEnumDeclaration(const ir::TSEnumDeclaration *enumDecl) in GenEnumDeclaration() argument 415 const auto enumName = GetKeyName(enumDecl->Key()); in GenEnumDeclaration() 420 ASSERT(enumDecl->TsType()->IsETSEnumType()); in GenEnumDeclaration() 421 GenEnumType(enumDecl->TsType()->AsETSEnumType()); in GenEnumDeclaration()
|
| D | declgenEts2Ts.h | 58 void GenEnumDeclaration(const ir::TSEnumDeclaration *enumDecl);
|
| /arkcompiler/ets_frontend/ets2panda/compiler/core/ |
| D | ETSemitter.h | 77 void GenEnumRecord(const ir::TSEnumDeclaration *enumDecl, bool external);
|
| /arkcompiler/ets_frontend/ets2panda/varbinder/ |
| D | ETSBinder.h | 148 void ResolveEnumDeclaration(ir::TSEnumDeclaration *enumDecl);
|
| D | ETSBinder.cpp | 212 void ETSBinder::ResolveEnumDeclaration(ir::TSEnumDeclaration *enumDecl) in ResolveEnumDeclaration() argument 214 auto enumScopeCtx = LexicalScope<LocalScope>::Enter(this, enumDecl->Scope()); in ResolveEnumDeclaration() 216 for (auto *member : enumDecl->Members()) { in ResolveEnumDeclaration()
|
| /arkcompiler/ets_frontend/ets2panda/checker/ |
| D | ETSchecker.h | 220 ETSEnumType *CreateETSEnumType(ir::TSEnumDeclaration const *enumDecl); 221 ETSStringEnumType *CreateETSStringEnumType(ir::TSEnumDeclaration const *enumDecl);
|
| /arkcompiler/ets_frontend/ets2panda/linter/src/ |
| D | TypeScriptLinter.ts | 1340 let enumDecl = tsEnumMember.parent; variable 1341 let firstEnumMember = enumDecl.members[0];
|
| /arkcompiler/ets_frontend/ets2panda/linter-4.2/src/ |
| D | TypeScriptLinter.ts | 1642 let enumDecl = tsEnumMember.parent; variable 1643 let firstEnumMember = enumDecl.members[0];
|