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

Function contextAt

plugins/contextbrowser/contextbrowser.cpp:99–105  ·  view source on GitHub ↗

Duchain must be locked

Source from the content-addressed store, hash-verified

97
98///Duchain must be locked
99DUContext* contextAt(const QUrl& url, KTextEditor::Cursor cursor)
100{
101 TopDUContext* topContext = DUChainUtils::standardContextForUrl(url);
102 if (!topContext)
103 return nullptr;
104 return contextForHighlightingAt(KTextEditor::Cursor(cursor), topContext);
105}
106
107DeclarationPointer cursorDeclaration()
108{

Callers 1

documentJumpPerformedMethod · 0.85

Calls 2

contextForHighlightingAtFunction · 0.85
CursorClass · 0.50

Tested by

no test coverage detected