MCPcopy Create free account
hub / github.com/KDE/kdevelop / contextOfFile

Method contextOfFile

plugins/qmljs/duchain/parsesession.cpp:209–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209ReferencedTopDUContext ParseSession::contextOfFile(const QString& fileName)
210{
211 ReferencedTopDUContext res = contextOfFile(fileName, m_url, m_ownPriority);
212
213 if (!res) {
214 // The file was not yet present in the DUChain, store this information.
215 // This will prevent the second parsing pass from running (it would be
216 // useless as the file will be re-parsed when res will become available)
217 m_allDependenciesSatisfied = false;
218 }
219
220 return res;
221}
222
223ReferencedTopDUContext ParseSession::contextOfFile(const QString& fileName,
224 const KDevelop::IndexedString& url,

Callers 2

startVisitingMethod · 0.80
importDirectoryMethod · 0.80

Calls 5

chainForDocumentMethod · 0.80
addDependencyMethod · 0.80
isEmptyMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected