Home
last modified time | relevance | path

Searched refs:programs (Results 1 - 12 of 12) sorted by relevance

/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/
H A DtopLevelStmts.cpp22 static bool CheckSourceConsistency(util::StringView name, ArenaVector<parser::Program *> const &programs) in CheckSourceConsistency() argument
24 if (programs.size() == 1) { in CheckSourceConsistency()
27 if (std::all_of(programs.begin(), programs.end(), [](auto p) { return p->IsPackageModule(); })) { in CheckSourceConsistency()
32 std::for_each(programs.begin(), programs.end(), [&ss](parser::Program *p) { in CheckSourceConsistency()
42 for (auto const &[name, programs] : program->ExternalSources()) { in CheckProgramSourcesConsistency()
43 success &= CheckSourceConsistency(name, programs); in CheckProgramSourcesConsistency()
45 for (auto const &[name, programs] : program->DirectExternalSources()) { in CheckProgramSourcesConsistency()
46 success &= CheckSourceConsistency(name, programs); in CheckProgramSourcesConsistency()
[all...]
H A DimportExportDecls.cpp58 * @brief Collects imported programs to initialize from the owner classes of the imported programs
67 for (auto const &[_, programs] : program->DirectExternalSources()) { in CollectImportedProgramsFromStmts()
69 parser::Program *first = programs.front(); in CollectImportedProgramsFromStmts()
76 GlobalClassHandler::ModuleDependencies ImportExportDecls::HandleGlobalStmts(ArenaVector<parser::Program *> &programs) in HandleGlobalStmts() argument
78 VerifySingleExportDefault(programs); in HandleGlobalStmts()
79 VerifyTypeExports(programs); in HandleGlobalStmts()
80 GlobalClassHandler::ModuleDependencies moduleDependencies {programs.front()->Allocator()->Adapter()}; in HandleGlobalStmts()
81 if (!programs.empty()) { in HandleGlobalStmts()
82 std::sort(programs in HandleGlobalStmts()
240 VerifyTypeExports(const ArenaVector<parser::Program *> &programs) VerifyTypeExports() argument
304 VerifySingleExportDefault(const ArenaVector<parser::Program *> &programs) VerifySingleExportDefault() argument
[all...]
H A DimportExportDecls.h58 GlobalClassHandler::ModuleDependencies HandleGlobalStmts(ArenaVector<parser::Program *> &programs);
59 void VerifyTypeExports(const ArenaVector<parser::Program *> &programs);
67 void VerifySingleExportDefault(const ArenaVector<parser::Program *> &programs);
H A DglobalClassHandler.cpp49 void GlobalClassHandler::SetupGlobalClass(const ArenaVector<parser::Program *> &programs, in SetupGlobalClass() argument
52 if (programs.empty()) { in SetupGlobalClass()
71 parser::Program *const globalProgram = programs.front(); in SetupGlobalClass()
73 bool isEntrypoint = programs.size() == 1 ? globalProgram->IsEntryPoint() : false; in SetupGlobalClass()
74 for (auto program : programs) { in SetupGlobalClass()
H A DglobalClassHandler.h39 * @param programs - vector of files in module
41 void SetupGlobalClass(const ArenaVector<parser::Program *> &programs, const ModuleDependencies *moduleDependencies);
/arkcompiler/ets_frontend/merge_abc/src/
H A Dmain.cpp69 std::vector<panda::pandasm::Program *> programs; in Run() local
70 programs.reserve(protoFiles.size()); in Run()
73 programs.emplace_back(prog); in Run()
78 proto::ProtobufSnapshotGenerator::GenerateProgram(protoFile, *(programs[idx++]), &allocator); in Run()
83 if (!panda::pandasm::AsmEmitter::EmitPrograms(panda::os::file::File::GetExtendedFilePath(outputFileName), programs, in Run()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
H A DobjectIndexAccess.cpp117 auto checkExternalPrograms = [this, ctx](const ArenaVector<parser::Program *> &programs) { in Postcondition()
118 for (auto *p : programs) { in Postcondition()
H A DopAssignment.cpp363 auto checkExternalPrograms = [this, ctx](const ArenaVector<parser::Program *> &programs) { in Postcondition()
364 for (auto *p : programs) { in Postcondition()
/arkcompiler/ets_frontend/ets2panda/parser/
H A DETSparser.cpp142 void ETSParser::AddExternalSource(const std::vector<Program *> &programs) in AddExternalSource() argument
146 for (auto *newProg : programs) { in AddExternalSource()
191 std::vector<Program *> &programs) in TryParseSource()
199 // don't insert the separate modules into the programs, when we collect implicit package imports in TryParseSource()
200 programs.emplace_back(newProg); in TryParseSource()
217 std::vector<Program *> programs; in ParseSources() local
237 // This is needed, as during a parsing of a file, programs can be re-added to the parseList, which needs to be in ParseSources()
259 return programs; in ParseSources()
280 TryParseSource(parseList[idx], extSrc, directImportsFromMainSource, programs); in ParseSources()
289 return programs; in ParseSources()
189 TryParseSource(const util::ImportPathManager::ParseInfo &parseListIdx, util::UString *extSrc, const ArenaVector<util::StringView> &directImportsFromMainSource, std::vector<Program *> &programs) TryParseSource() argument
[all...]
H A DETSparser.h257 std::vector<Program *> &programs);
265 void AddExternalSource(const std::vector<Program *> &programs);
/arkcompiler/ets_frontend/ets2panda/checker/ets/
H A DutilityTypeHandlers.cpp301 varbinder::Variable *ETSChecker::SearchNamesInMultiplePrograms(const std::set<const parser::Program *> &programs, in SearchNamesInMultiplePrograms() argument
304 for (const auto *const program : programs) { in SearchNamesInMultiplePrograms()
/arkcompiler/ets_frontend/ets2panda/checker/
H A DETSchecker.h648 varbinder::Variable *SearchNamesInMultiplePrograms(const std::set<const parser::Program *> &programs,

Completed in 10 milliseconds