Lines Matching defs:reply
28 /// Function object to reply to an LSP call.
30 /// - if there was no reply, an error reply is sent
41 void operator()(llvm::Expected<llvm::json::Value> reply);
64 void Reply::operator()(llvm::Expected<llvm::json::Value> reply) {
67 assert(false && "must reply to each call only once!");
70 assert(transport && "expected valid transport to reply to");
73 if (reply) {
74 Logger::info("--> reply:{0}({1})", method, id);
75 transport->reply(std::move(id), std::move(reply));
77 llvm::Error error = reply.takeError();
78 Logger::info("--> reply:{0}({1}): {2}", method, id, error);
79 transport->reply(std::move(id), std::move(error));
106 Reply reply(id, method, transport, transportOutputMutex);
110 it->second(std::move(params), std::move(reply));
112 reply(llvm::make_error<LSPError>("method not found: " + method.str(),
134 Logger::info("--> reply:{0}({1})", responseHandler.first, id);
138 "received a reply with ID {0}, but there was no such outgoing request",
193 void JSONTransport::reply(llvm::json::Value id,