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

Method QmlJsParseJob

plugins/qmljs/qmljsparsejob.cpp:68–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68QmlJsParseJob::QmlJsParseJob(const IndexedString& url, ILanguageSupport* languageSupport)
69: ParseJob(url, languageSupport)
70{
71 // Tell the cache that this file has custom include directories
72 if (auto file = findProjectFileItem(url)) {
73 QmlJS::Cache::instance().setFileCustomIncludes(
74 url,
75 IDefinesAndIncludesManager::manager()->includes(file,
76 IDefinesAndIncludesManager::Type(
77 IDefinesAndIncludesManager::ProjectSpecific | IDefinesAndIncludesManager::UserDefined))
78 );
79 } else {
80 QmlJS::Cache::instance().setFileCustomIncludes(
81 url,
82 IDefinesAndIncludesManager::manager()->includes(url.str(),
83 IDefinesAndIncludesManager::ProjectSpecific)
84 );
85 }
86}
87
88void QmlJsParseJob::run(ThreadWeaver::JobPointer pointer, ThreadWeaver::Thread* thread)
89{

Callers

nothing calls this directly

Calls 6

managerFunction · 0.85
setFileCustomIncludesMethod · 0.80
strMethod · 0.80
findProjectFileItemFunction · 0.70
TypeEnum · 0.50
includesMethod · 0.45

Tested by

no test coverage detected