LLDB mainline
lldb_protocol::mcp::ProtocolDescriptor Struct Reference

#include <Transport.h>

Public Types

using Id = int64_t
using Req = Request
using Resp = Response
using Evt = Notification

Static Public Member Functions

static Id InitialId ()
static Request Make (Id id, llvm::StringRef method, std::optional< llvm::json::Value > params)
static Notification Make (llvm::StringRef method, std::optional< llvm::json::Value > params)
static Response Make (Req req, llvm::Error error)
static Response Make (Req req, std::optional< llvm::json::Value > result)
static Id KeyFor (Response r)
static std::string KeyFor (Request r)
static std::string KeyFor (Notification n)
static std::optional< llvm::json::Value > Extract (Request r)
static llvm::Expected< llvm::json::Value > Extract (Response r)
static std::optional< llvm::json::Value > Extract (Notification n)

Detailed Description

Definition at line 23 of file Transport.h.

Member Typedef Documentation

◆ Evt

◆ Id

Definition at line 24 of file Transport.h.

◆ Req

◆ Resp

Member Function Documentation

◆ Extract() [1/3]

std::optional< llvm::json::Value > lldb_protocol::mcp::ProtocolDescriptor::Extract ( Notification n)
inlinestatic

Definition at line 69 of file Transport.h.

References lldb_protocol::mcp::Notification::params.

◆ Extract() [2/3]

std::optional< llvm::json::Value > lldb_protocol::mcp::ProtocolDescriptor::Extract ( Request r)
inlinestatic

Definition at line 59 of file Transport.h.

References lldb_protocol::mcp::Request::params.

◆ Extract() [3/3]

llvm::Expected< llvm::json::Value > lldb_protocol::mcp::ProtocolDescriptor::Extract ( Response r)
inlinestatic

Definition at line 62 of file Transport.h.

References error(), and lldb_protocol::mcp::Response::result.

◆ InitialId()

Id lldb_protocol::mcp::ProtocolDescriptor::InitialId ( )
inlinestatic

Definition at line 29 of file Transport.h.

◆ KeyFor() [1/3]

std::string lldb_protocol::mcp::ProtocolDescriptor::KeyFor ( Notification n)
inlinestatic

Definition at line 58 of file Transport.h.

References lldb_protocol::mcp::Notification::method.

◆ KeyFor() [2/3]

std::string lldb_protocol::mcp::ProtocolDescriptor::KeyFor ( Request r)
inlinestatic

Definition at line 57 of file Transport.h.

References lldb_protocol::mcp::Request::method.

◆ KeyFor() [3/3]

Id lldb_protocol::mcp::ProtocolDescriptor::KeyFor ( Response r)
inlinestatic

Definition at line 56 of file Transport.h.

References lldb_protocol::mcp::Response::id.

◆ Make() [1/4]

Request lldb_protocol::mcp::ProtocolDescriptor::Make ( Id id,
llvm::StringRef method,
std::optional< llvm::json::Value > params )
inlinestatic

Definition at line 30 of file Transport.h.

◆ Make() [2/4]

Notification lldb_protocol::mcp::ProtocolDescriptor::Make ( llvm::StringRef method,
std::optional< llvm::json::Value > params )
inlinestatic

Definition at line 34 of file Transport.h.

◆ Make() [3/4]

Response lldb_protocol::mcp::ProtocolDescriptor::Make ( Req req,
llvm::Error error )
inlinestatic

◆ Make() [4/4]

Response lldb_protocol::mcp::ProtocolDescriptor::Make ( Req req,
std::optional< llvm::json::Value > result )
inlinestatic

Definition at line 52 of file Transport.h.

References lldb_protocol::mcp::Request::id.


The documentation for this struct was generated from the following file: