Home
last modified time | relevance | path

Searched refs:enumDecl (Results 1 – 15 of 15) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/checker/types/ets/
DetsEnumType.h41 …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
DetsEnumType.cpp26 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/
DscopesInitPhase.cpp514 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 …]
DscopesInitPhase.h214 void VisitTSEnumDeclaration(ir::TSEnumDeclaration *enumDecl) override;
342 void VisitTSEnumDeclaration(ir::TSEnumDeclaration *enumDecl) override;
/arkcompiler/ets_frontend/ets2panda/checker/ets/
DtypeCreation.cpp372 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()
Denum.cpp69 const ir::TSEnumDeclaration *const enumDecl, in MakeQualifiedIdentifier() argument
73 AppendParentNames(qualifiedName, enumDecl->Parent()); in MakeQualifiedIdentifier()
74 qualifiedName.Append(enumDecl->Key()->Name()); in MakeQualifiedIdentifier()
Dhelpers.cpp1334 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/
DdeclgenEts2Ts.cpp413 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()
DdeclgenEts2Ts.h58 void GenEnumDeclaration(const ir::TSEnumDeclaration *enumDecl);
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DETSemitter.h77 void GenEnumRecord(const ir::TSEnumDeclaration *enumDecl, bool external);
/arkcompiler/ets_frontend/ets2panda/varbinder/
DETSBinder.h148 void ResolveEnumDeclaration(ir::TSEnumDeclaration *enumDecl);
DETSBinder.cpp212 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/
DETSchecker.h220 ETSEnumType *CreateETSEnumType(ir::TSEnumDeclaration const *enumDecl);
221 ETSStringEnumType *CreateETSStringEnumType(ir::TSEnumDeclaration const *enumDecl);
/arkcompiler/ets_frontend/ets2panda/linter/src/
DTypeScriptLinter.ts1340 let enumDecl = tsEnumMember.parent; variable
1341 let firstEnumMember = enumDecl.members[0];
/arkcompiler/ets_frontend/ets2panda/linter-4.2/src/
DTypeScriptLinter.ts1642 let enumDecl = tsEnumMember.parent; variable
1643 let firstEnumMember = enumDecl.members[0];