Lines Matching defs:Pos
421 void ClangdServer::codeComplete(PathRef File, Position Pos,
429 auto Task = [Pos, CodeCompleteOpts, File = File.str(), CB = std::move(CB),
461 File, Pos, IP->Preamble, ParseInput, CodeCompleteOpts,
486 void ClangdServer::signatureHelp(PathRef File, Position Pos,
490 auto Action = [Pos, File = File.str(), CB = std::move(CB),
506 CB(clangd::signatureHelp(File, Pos, *PreambleData, ParseInput,
553 void ClangdServer::formatOnType(PathRef File, Position Pos,
560 llvm::Expected<size_t> CursorPos = positionToOffset(*Code, Pos);
576 void ClangdServer::prepareRename(PathRef File, Position Pos,
580 auto Action = [Pos, File = File.str(), CB = std::move(CB),
588 clangd::rename({Pos, NewName.value_or("__clangd_rename_placeholder"),
602 void ClangdServer::rename(PathRef File, Position Pos, llvm::StringRef NewName,
605 auto Action = [File = File.str(), NewName = NewName.str(), Pos, Opts,
613 auto R = clangd::rename({Pos, NewName, InpAST->AST, File,
789 void ClangdServer::locateSymbolAt(PathRef File, Position Pos,
791 auto Action = [Pos, CB = std::move(CB),
795 CB(clangd::locateSymbolAt(InpAST->AST, Pos, Index));
822 PathRef File, Position Pos, Callback<std::vector<DocumentHighlight>> CB) {
824 [Pos, CB = std::move(CB)](llvm::Expected<InputsAndAST> InpAST) mutable {
827 CB(clangd::findDocumentHighlights(InpAST->AST, Pos));
833 void ClangdServer::findHover(PathRef File, Position Pos,
835 auto Action = [File = File.str(), Pos, CB = std::move(CB),
841 CB(clangd::getHover(InpAST->AST, Pos, std::move(Style), Index));
847 void ClangdServer::typeHierarchy(PathRef File, Position Pos, int Resolve,
850 auto Action = [File = File.str(), Pos, Resolve, Direction, CB = std::move(CB),
854 CB(clangd::getTypeHierarchy(InpAST->AST, Pos, Resolve, Direction, Index,
888 PathRef File, Position Pos, Callback<std::vector<CallHierarchyItem>> CB) {
889 auto Action = [File = File.str(), Pos,
893 CB(clangd::prepareCallHierarchy(InpAST->AST, Pos, File));
971 void ClangdServer::findType(llvm::StringRef File, Position Pos,
973 auto Action = [Pos, CB = std::move(CB),
977 CB(clangd::findType(InpAST->AST, Pos, Index));
983 PathRef File, Position Pos, Callback<std::vector<LocatedSymbol>> CB) {
984 auto Action = [Pos, CB = std::move(CB),
988 CB(clangd::findImplementations(InpAST->AST, Pos, Index));
994 void ClangdServer::findReferences(PathRef File, Position Pos, uint32_t Limit,
997 auto Action = [Pos, Limit, AddContainer, CB = std::move(CB),
1001 CB(clangd::findReferences(InpAST->AST, Pos, Limit, Index, AddContainer));
1007 void ClangdServer::symbolInfo(PathRef File, Position Pos,
1010 [Pos, CB = std::move(CB)](llvm::Expected<InputsAndAST> InpAST) mutable {
1013 CB(clangd::getSymbolInfo(InpAST->AST, Pos));
1027 for (const auto &Pos : Positions) {
1028 if (auto Range = clangd::getSemanticRanges(InpAST->AST, Pos))