Searched refs:moduleDecl (Results 1 - 4 of 4) sorted by relevance
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
H A D | scopesInitPhase.cpp | 493 void ScopeInitTyped::VisitTSModuleDeclaration(ir::TSModuleDeclaration *moduleDecl) in VisitTSModuleDeclaration() argument 495 if (!moduleDecl->IsExternalOrAmbient()) { in VisitTSModuleDeclaration() 496 auto name = moduleDecl->Name()->AsIdentifier()->Name(); in VisitTSModuleDeclaration() 497 auto *decl = AddOrGetDecl<varbinder::VarDecl>(VarBinder(), name, moduleDecl, moduleDecl->Name()->Start(), name); in VisitTSModuleDeclaration() 498 decl->BindNode(moduleDecl); in VisitTSModuleDeclaration() 500 auto localCtx = LexicalScopeCreateOrEnter<varbinder::LocalScope>(VarBinder(), moduleDecl); in VisitTSModuleDeclaration() 501 BindScopeNode(localCtx.GetScope(), moduleDecl); in VisitTSModuleDeclaration() 502 Iterate(moduleDecl); in VisitTSModuleDeclaration()
|
H A D | scopesInitPhase.h | 206 void VisitTSModuleDeclaration(ir::TSModuleDeclaration *moduleDecl) override;
|
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | TypedParser.cpp | 269 auto *moduleDecl = AllocNode<ir::TSModuleDeclaration>( in ParseAmbientExternalModuleDeclaration() local 271 moduleDecl->SetRange({startLoc, Lexer()->GetToken().End()}); in ParseAmbientExternalModuleDeclaration() 273 return moduleDecl; in ParseAmbientExternalModuleDeclaration() 297 auto *moduleDecl = AllocNode<ir::TSModuleDeclaration>( in ParseModuleOrNamespaceDeclaration() local 299 moduleDecl->SetRange({startLoc, Lexer()->GetToken().End()}); in ParseModuleOrNamespaceDeclaration() 301 return moduleDecl; in ParseModuleOrNamespaceDeclaration()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | statementParser.cpp | 399 auto *moduleDecl = AllocNode<ir::TSModuleDeclaration>(localCtx.GetScope(), name, body, isDeclare, isGlobal); in ParseTsAmbientExternalModuleDeclaration() local 400 moduleDecl->SetRange({startLoc, lexer_->GetToken().End()}); in ParseTsAmbientExternalModuleDeclaration() 401 localCtx.GetScope()->BindNode(moduleDecl); in ParseTsAmbientExternalModuleDeclaration() 403 return moduleDecl; in ParseTsAmbientExternalModuleDeclaration() 453 auto *moduleDecl = AllocNode<ir::TSModuleDeclaration>(localCtx.GetScope(), identNode, body, in ParseTsModuleOrNamespaceDelaration() local 455 moduleDecl->SetRange({startLoc, lexer_->GetToken().End()}); in ParseTsModuleOrNamespaceDelaration() 456 localCtx.GetScope()->BindNode(moduleDecl); in ParseTsModuleOrNamespaceDelaration() 457 res->Declaration()->AsNamespaceDecl()->Add(moduleDecl); in ParseTsModuleOrNamespaceDelaration() 459 return moduleDecl; in ParseTsModuleOrNamespaceDelaration()
|
Completed in 10 milliseconds