Home
last modified time | relevance | path

Searched refs:importDecl (Results 1 - 15 of 15) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A DmoduleContext.cpp30 for (const auto &[importDecl, decls] : scope->Imports()) { in CompileImports()
31 pg->ImportModule(importDecl, importDecl->Source()->Str()); in CompileImports()
34 pg->StoreAccumulator(importDecl, moduleReg); in CompileImports()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/
H A DsavedBindingsCtx.cpp25 void ImportDeclarationContext::BindImportDecl(ir::ImportDeclaration *importDecl) in BindImportDecl() argument
37 VarBinder()->GetScope()->AsModuleScope()->AddImportDecl(importDecl, std::move(declList)); in BindImportDecl()
H A DsavedBindingsCtx.h76 void BindImportDecl(ir::ImportDeclaration *importDecl);
H A DscopesInitPhase.cpp940 void InitScopesPhaseETS::VisitETSImportDeclaration(ir::ETSImportDeclaration *importDecl) in VisitETSImportDeclaration() argument
943 if (importDecl->Language().IsDynamic()) { in VisitETSImportDeclaration()
944 VarBinder()->AsETSBinder()->AddDynamicImport(importDecl); in VisitETSImportDeclaration()
946 Iterate(importDecl); in VisitETSImportDeclaration()
H A DscopesInitPhase.h348 void VisitETSImportDeclaration(ir::ETSImportDeclaration *importDecl) override;
/arkcompiler/ets_frontend/ets2panda/ast_verifier/
H A DimportExportAccessValid.cpp33 const auto importDecl = ast->AsETSImportDeclaration()->Specifiers(); in operator ()() local
43 for (const auto import : importDecl) { in operator ()()
/arkcompiler/ets_frontend/ets2panda/test/unit/dynamic/
H A Ddynamic_call_test.cpp91 auto importDecl = in AddDynImport() local
93 compiler::InitScopesPhaseETS::RunExternalNode(importDecl, varbinder); in AddDynImport()
94 varbinder->BuildImportDeclaration(importDecl); in AddDynImport()
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A Dhelpers.cpp1293 std::pair<bool, util::StringView> FindSpecifierForModuleObject(ir::ETSImportDeclaration *importDecl, in FindSpecifierForModuleObject() argument
1296 if (importDecl == nullptr) { in FindSpecifierForModuleObject()
1300 for (auto item : importDecl->Specifiers()) { in FindSpecifierForModuleObject()
1313 ir::ETSImportDeclaration *importDecl, in BindingsModuleObjectAddProperty()
1318 auto [found, aliasedName] = FindSpecifierForModuleObject(importDecl, var->AsLocalVariable()->Name()); in BindingsModuleObjectAddProperty()
1360 ir::ETSImportDeclaration *importDecl) in SetPropertiesForModuleObject()
1372 moduleObjType, importDecl, program->GlobalClassScope()->StaticFieldScope()->Bindings()); in SetPropertiesForModuleObject()
1375 moduleObjType, importDecl, program->GlobalClassScope()->StaticMethodScope()->Bindings()); in SetPropertiesForModuleObject()
1378 moduleObjType, importDecl, program->GlobalClassScope()->StaticDeclScope()->Bindings()); in SetPropertiesForModuleObject()
1381 moduleObjType, importDecl, progra in SetPropertiesForModuleObject()
1312 BindingsModuleObjectAddProperty(checker::ETSObjectType *moduleObjType, ir::ETSImportDeclaration *importDecl, const varbinder::Scope::VariableMap &bindings) BindingsModuleObjectAddProperty() argument
1359 SetPropertiesForModuleObject(checker::ETSObjectType *moduleObjType, const util::StringView &importPath, ir::ETSImportDeclaration *importDecl) SetPropertiesForModuleObject() argument
2654 ImportNamespaceObjectTypeAddReExportType(ir::ETSImportDeclaration *importDecl, checker::ETSObjectType *lastObjectType, ir::Identifier *ident) ImportNamespaceObjectTypeAddReExportType() argument
2672 GetImportSpecifierObjectType(ir::ETSImportDeclaration *importDecl, ir::Identifier *ident) GetImportSpecifierObjectType() argument
[all...]
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/
H A DimportExportDecls.h82 void VisitETSImportDeclaration(ir::ETSImportDeclaration *importDecl) override;
H A DimportExportDecls.cpp207 void ImportExportDecls::VisitETSImportDeclaration(ir::ETSImportDeclaration *importDecl) in VisitETSImportDeclaration() argument
209 for (ir::AstNode *spec : importDecl->AsETSImportDeclaration()->Specifiers()) { in VisitETSImportDeclaration()
/arkcompiler/ets_frontend/ets2panda/test/unit/public/
H A Dast_builder_test.cpp423 auto importDecl = in TEST_F() local
425 ASSERT_TRUE(importDecl->IsImportDeclaration()); in TEST_F()
/arkcompiler/ets_frontend/ets2panda/varbinder/
H A Dscope.cpp626 void ModuleScope::AddImportDecl(ir::ImportDeclaration *importDecl, ImportDeclList &&decls) in AddImportDecl() argument
628 auto res = imports_.emplace_back(importDecl, decls); in AddImportDecl()
631 decl->BindNode(importDecl); in AddImportDecl()
H A Dscope.h929 void AddImportDecl(ir::ImportDeclaration *importDecl, ImportDeclList &&decls);
/arkcompiler/ets_frontend/ets2panda/checker/
H A DETSAnalyzer.cpp1946 auto *importDecl = st->Parent()->AsETSImportDeclaration(); in Check() local
1948 if (importDecl->IsPureDynamic()) { in Check()
1949 auto *type = checker->GlobalBuiltinDynamicType(importDecl->Language()); in Check()
1954 return checker->GetImportSpecifierObjectType(importDecl, st->Local()->AsIdentifier()); in Check()
2681 auto importDecl = baseType->AsETSObjectType()->GetDeclNode()->Parent()->Parent(); in Check() local
2684 importDecl->IsETSImportDeclaration() in Check()
2686 importDecl->AsETSImportDeclaration()->ResolvedSource()->Str(), expr->Right()->Name()) in Check()
H A DETSchecker.h492 void BindingsModuleObjectAddProperty(checker::ETSObjectType *moduleObjType, ir::ETSImportDeclaration *importDecl,
496 ir::ETSImportDeclaration *importDecl = nullptr);
626 ETSObjectType *GetImportSpecifierObjectType(ir::ETSImportDeclaration *importDecl, ir::Identifier *ident);
627 void ImportNamespaceObjectTypeAddReExportType(ir::ETSImportDeclaration *importDecl,

Completed in 19 milliseconds