Lines Matching refs:LS
81 bool shardIsStale(const LoadedShard &LS, llvm::vfs::FileSystem *FS) { in shardIsStale() argument
82 auto Buf = FS->getBufferForFile(LS.AbsolutePath); in shardIsStale()
85 LS.AbsolutePath, Buf.getError().message()); in shardIsStale()
89 return digest(Buf->get()->getBuffer()) != LS.Digest; in shardIsStale()
371 for (auto &LS : Result) { in loadProject() local
372 if (!LS.Shard) in loadProject()
375 LS.Shard->Symbols in loadProject()
376 ? std::make_unique<SymbolSlab>(std::move(*LS.Shard->Symbols)) in loadProject()
378 auto RS = LS.Shard->Refs in loadProject()
379 ? std::make_unique<RefSlab>(std::move(*LS.Shard->Refs)) in loadProject()
382 LS.Shard->Relations in loadProject()
383 ? std::make_unique<RelationSlab>(std::move(*LS.Shard->Relations)) in loadProject()
385 ShardVersion &SV = ShardVersions[LS.AbsolutePath]; in loadProject()
386 SV.Digest = LS.Digest; in loadProject()
387 SV.HadErrors = LS.HadErrors; in loadProject()
390 IndexedSymbols.update(LS.AbsolutePath, std::move(SS), std::move(RS), in loadProject()
391 std::move(RelS), LS.CountReferences); in loadProject()
401 for (auto &LS : Result) { in loadProject() local
402 if (!shardIsStale(LS, FS.get())) in loadProject()
404 PathRef TUForFile = LS.DependentTU; in loadProject()