nixd
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lspserver::OutboundPort Class Reference

#include <Connection.h>

Public Member Functions

 OutboundPort (bool Pretty=false)
 
 OutboundPort (llvm::raw_ostream &Outs, bool Pretty=false)
 
void notify (llvm::StringRef Method, llvm::json::Value Params)
 
void call (llvm::StringRef Method, llvm::json::Value Params, llvm::json::Value ID)
 
void reply (llvm::json::Value ID, llvm::Expected< llvm::json::Value > Result)
 
void sendMessage (llvm::json::Value Message)
 

Detailed Description

Definition at line 68 of file Connection.h.

Constructor & Destructor Documentation

◆ OutboundPort() [1/2]

lspserver::OutboundPort::OutboundPort ( bool Pretty = false)
inlineexplicit

Definition at line 79 of file Connection.h.

◆ OutboundPort() [2/2]

lspserver::OutboundPort::OutboundPort ( llvm::raw_ostream & Outs,
bool Pretty = false )
inline

Definition at line 81 of file Connection.h.

Member Function Documentation

◆ call()

void lspserver::OutboundPort::call ( llvm::StringRef Method,
llvm::json::Value Params,
llvm::json::Value ID )

Definition at line 65 of file Connection.cpp.

References lspserver::fromJSON(), lspserver::Method, and sendMessage().

◆ notify()

void lspserver::OutboundPort::notify ( llvm::StringRef Method,
llvm::json::Value Params )

Definition at line 58 of file Connection.cpp.

References lspserver::fromJSON(), lspserver::Method, and sendMessage().

◆ reply()

void lspserver::OutboundPort::reply ( llvm::json::Value ID,
llvm::Expected< llvm::json::Value > Result )

Definition at line 74 of file Connection.cpp.

References lspserver::fromJSON(), and sendMessage().

◆ sendMessage()

void lspserver::OutboundPort::sendMessage ( llvm::json::Value Message)

Definition at line 91 of file Connection.cpp.

References lspserver::fromJSON(), and lspserver::vlog().

Referenced by call(), notify(), and reply().


The documentation for this class was generated from the following files: