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

Method transformFromLocalRevision

kdevplatform/language/duchain/duchainbase.cpp:188–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188KTextEditor::Range DUChainBase::transformFromLocalRevision(const KDevelop::RangeInRevision& range) const
189{
190 DocumentChangeTracker* tracker = ICore::self()->languageController()->backgroundParser()->trackerForUrl(url());
191
192 if (tracker && topContext() && topContext()->parsingEnvironmentFile()) {
193 qint64 revision = topContext()->parsingEnvironmentFile()->modificationRevision().revision;
194 return tracker->transformToCurrentRevision(range, revision);
195 }
196
197 return range.castToSimpleRange();
198}
199
200KTextEditor::Cursor DUChainBase::transformFromLocalRevision(const KDevelop::CursorInRevision& cursor) const
201{

Callers 11

usesCurrentRevisionMethod · 0.80
itemUnderCursorMethod · 0.80
createUseWidgetsFunction · 0.80
applyChangesMethod · 0.80
textChangedMethod · 0.80
jumpToNearestFunctionMethod · 0.80
switchUseMethod · 0.80
setProblemsMethod · 0.80

Calls 8

urlFunction · 0.85
topContextFunction · 0.85
trackerForUrlMethod · 0.80
backgroundParserMethod · 0.80
languageControllerMethod · 0.80
modificationRevisionMethod · 0.80

Tested by

no test coverage detected