Lines Matching defs:enumDecl
582 void ScopeInitTyped::VisitTSEnumDeclaration(ir::TSEnumDeclaration *enumDecl)
584 util::StringView ident = FormInterfaceOrEnumDeclarationIdBinding(enumDecl->Key());
590 decl = VarBinder()->AddTsDecl<varbinder::EnumLiteralDecl>(enumDecl->Start(), ident, enumDecl->IsConst());
591 varbinder::LexicalScope enumCtx = LexicalScopeCreateOrEnter<varbinder::LocalScope>(VarBinder(), enumDecl);
593 BindScopeNode(VarBinder()->GetScope()->AsLocalScope(), enumDecl);
595 (enumDecl->IsConst() ^ res->second->Declaration()->AsEnumLiteralDecl()->IsConst()) != 0) {
596 auto loc = enumDecl->Key()->End();
598 VarBinder()->ThrowRedeclaration(loc, enumDecl->Key()->Name());
604 decl->BindNode(enumDecl);
605 Iterate(enumDecl);
1041 void InitScopesPhaseETS::VisitTSEnumDeclaration(ir::TSEnumDeclaration *enumDecl)
1044 const auto enumCtx = LexicalScopeCreateOrEnter<varbinder::LocalScope>(VarBinder(), enumDecl);
1045 BindScopeNode(enumCtx.GetScope(), enumDecl);
1046 Iterate(enumDecl);
1048 auto name = FormInterfaceOrEnumDeclarationIdBinding(enumDecl->Key());
1049 auto *decl = AddOrGetDecl<varbinder::EnumLiteralDecl>(VarBinder(), name, enumDecl, enumDecl->Start(), name,
1050 enumDecl, enumDecl->IsConst());
1051 decl->BindScope(enumDecl->Scope());