• Home
  • Raw
  • Download

Lines Matching full:arktsconfig

16 #include "arktsconfig.h"
48 ((std::cerr << "ArkTsConfig error: ") << ... << msgs); in Check()
91 ArkTsConfig::Pattern::Pattern(std::string value, std::string base) : value_(std::move(value)), base… in Pattern()
96 bool ArkTsConfig::Pattern::IsPattern() const in IsPattern()
101 std::string ArkTsConfig::Pattern::GetSearchRoot() const in GetSearchRoot()
115 bool ArkTsConfig::Pattern::Match(const std::string &path) const in Match()
121 // Replace arktsconfig special symbols with regular expressions in Match()
153 static std::optional<ArkTsConfig> ParseExtends(const std::string &configPath, const std::string &ex… in ParseExtends()
165 auto base = ArkTsConfig(basePath); in ParseExtends()
265 …auto res = dynamicPathsMap.insert({normalizedKey, ArkTsConfig::DynamicImportData(*lang, *hasDeclVa… in ParseDynamicPaths()
318 bool ArkTsConfig::Parse() in Parse()
331 auto arktsConfig = std::make_unique<JsonObject>(*tsConfigSource); in Parse() local
332 if (!Check(arktsConfig->IsValid(), "ArkTsConfig is not valid json")) { in Parse()
338 if (arktsConfig->HasKey(EXTENDS)) { in Parse()
339 auto *extends = arktsConfig->GetValue<JsonObject::StringT>(EXTENDS); in Parse()
351 auto compilerOptions = arktsConfig->GetValue<JsonObject::JsonObjPointer>(COMPILER_OPTIONS); in Parse()
365 …if (arktsConfig->HasKey(FILES) && !ParseCollection(arktsConfig.get(), files_, FILES, concatPath)) { in Parse()
372 …if (arktsConfig->HasKey(INCLUDE) && !ParseCollection(arktsConfig.get(), include_, INCLUDE, consPat… in Parse()
375 …if (arktsConfig->HasKey(EXCLUDE) && !ParseCollection(arktsConfig.get(), exclude_, EXCLUDE, consPat… in Parse()
383 void ArkTsConfig::Inherit(const ArkTsConfig &base) in Inherit()
406 std::optional<std::string> ArkTsConfig::ResolvePath(const std::string &path) const in ResolvePath()
413 … // NOTE(ivagin): arktsconfig contains array of paths for each prefix, for now just get first one in ResolvePath()
423 static bool MatchExcludes(const fs::path &path, const std::vector<ArkTsConfig::Pattern> &excludes) in MatchExcludes()
433 static std::vector<fs::path> GetSourceList(const std::shared_ptr<ArkTsConfig> &arktsConfig) in GetSourceList() argument
435 auto includes = arktsConfig->Include(); in GetSourceList()
436 auto excludes = arktsConfig->Exclude(); in GetSourceList()
437 auto files = arktsConfig->Files(); in GetSourceList()
440 auto configDir = fs::absolute(fs::path(arktsConfig->ConfigPath())).parent_path(); in GetSourceList()
442 includes = {ArkTsConfig::Pattern("**/*", configDir.string())}; in GetSourceList()
445 if (!fs::equivalent(arktsConfig->OutDir(), configDir)) { in GetSourceList()
446 excludes.emplace_back("**/*", arktsConfig->OutDir()); in GetSourceList()
510 …pair<std::string, std::string>> FindProjectSources(const std::shared_ptr<ArkTsConfig> &arktsConfig) in FindProjectSources() argument
512 auto sourceFiles = GetSourceList(arktsConfig); in FindProjectSources()
515 auto dst = ComputeDestination(src, arktsConfig->RootDir(), arktsConfig->OutDir()); in FindProjectSources()
528 [[maybe_unused]] const std::shared_ptr<ArkTsConfig> &arkts_config) in FindProjectSources()