Lines Matching refs:method

32   Reply(const llvm::json::Value &id, StringRef method,
42 StringRef method; member in __anon441a52320111::Reply
49 Reply::Reply(const llvm::json::Value &id, llvm::StringRef method, in Reply() argument
61 Logger::error("Replied twice to message {0}({1})", method, id); in operator ()()
68 Logger::info("--> reply:{0}({1})", method, id); in operator ()()
72 Logger::info("--> reply:{0}({1})", method, id, error); in operator ()()
81 bool MessageHandler::onNotify(llvm::StringRef method, llvm::json::Value value) { in onNotify() argument
82 Logger::info("--> {0}", method); in onNotify()
84 if (method == "exit") in onNotify()
86 if (method == "$cancel") { in onNotify()
89 auto it = notificationHandlers.find(method); in onNotify()
96 bool MessageHandler::onCall(llvm::StringRef method, llvm::json::Value params, in onCall() argument
98 Logger::info("--> {0}({1})", method, id); in onCall()
100 Reply reply(id, method, transport); in onCall()
102 auto it = methodHandlers.find(method); in onCall()
106 reply(llvm::make_error<LSPError>("method not found: " + method.str(), in onCall()
163 void JSONTransport::notify(StringRef method, llvm::json::Value params) { in notify() argument
166 {"method", method}, in notify()
170 void JSONTransport::call(StringRef method, llvm::json::Value params, in call() argument
175 {"method", method}, in call()
238 Optional<StringRef> method = object->getString("method"); in handleMessage() local
241 if (!method) { in handleMessage()
259 return handler.onCall(*method, std::move(params), std::move(*id)); in handleMessage()
260 return handler.onNotify(*method, std::move(params)); in handleMessage()