MCPcopy Create free account
hub / github.com/Palm1r/QodeAssist / parseFile

Method parseFile

sources/providersConfig/ProviderInstanceLoader.cpp:202–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200} // namespace
201
202std::optional<ProviderInstance> ProviderInstanceLoader::parseFile(
203 const QString &path, QString *error)
204{
205 auto objOpt = parseTomlFile(path, error);
206 if (!objOpt)
207 return std::nullopt;
208 ProviderInstance inst = instanceFromMerged(*objOpt);
209 inst.sourcePath = path;
210 return inst;
211}
212
213ProviderInstanceLoader::LoadResult ProviderInstanceLoader::load(
214 const QString &qrcPrefix, const QString &userDir)

Callers

nothing calls this directly

Calls 2

instanceFromMergedFunction · 0.85
parseTomlFileFunction · 0.70

Tested by

no test coverage detected