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

Method transformToLocalRevision

kdevplatform/language/duchain/duchainbase.cpp:164–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164CursorInRevision DUChainBase::transformToLocalRevision(const KTextEditor::Cursor& cursor) const
165{
166 DocumentChangeTracker* tracker = ICore::self()->languageController()->backgroundParser()->trackerForUrl(url());
167
168 if (tracker && topContext() && topContext()->parsingEnvironmentFile()) {
169 qint64 revision = topContext()->parsingEnvironmentFile()->modificationRevision().revision;
170 return tracker->transformToRevision(cursor, revision);
171 }
172
173 return CursorInRevision::castFromSimpleCursor(cursor);
174}
175
176RangeInRevision DUChainBase::transformToLocalRevision(const KTextEditor::Range& range) const
177{

Callers 13

itemUnderCursorMethod · 0.80
declarationInLineMethod · 0.80
cursorContextDeclarationFunction · 0.80
jumpToNearestFunctionMethod · 0.80
contextForHighlightingAtFunction · 0.80
switchUseMethod · 0.80
getDeclarationAtCursorFunction · 0.80
completionInvokedMethod · 0.80

Calls 10

urlFunction · 0.85
topContextFunction · 0.85
castFromSimpleCursorFunction · 0.85
castFromSimpleRangeFunction · 0.85
trackerForUrlMethod · 0.80
backgroundParserMethod · 0.80
languageControllerMethod · 0.80
modificationRevisionMethod · 0.80
transformToRevisionMethod · 0.80

Tested by

no test coverage detected