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

Method completionInvokedInternal

plugins/clang/codecompletion/model.cpp:223–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223void ClangCodeCompletionModel::completionInvokedInternal(KTextEditor::View* view, const KTextEditor::Range& range,
224 CodeCompletionModel::InvocationType /*invocationType*/, const QUrl &url)
225{
226 auto text = view->document()->text({0, 0, range.start().line(), range.start().column()});
227 auto followingText = view->document()->text({{range.start().line(), range.start().column()}, view->document()->documentEnd()});
228 emit requestCompletion(url, KTextEditor::Cursor(range.start()), text, followingText);
229}
230
231#include "model.moc"
232#include "moc_model.cpp"

Callers

nothing calls this directly

Calls 6

CursorClass · 0.70
textMethod · 0.45
documentMethod · 0.45
lineMethod · 0.45
startMethod · 0.45
columnMethod · 0.45

Tested by

no test coverage detected