Phasor 3.1.1
Stack VM based Programming Language
Loading...
Searching...
No Matches
LSP_main.cpp File Reference
#include "../../../LSP/Phasor/LSP.hpp"
#include <json.hpp>
#include <string>
#include <stdexcept>
#include <nativeerror.h>
Include dependency graph for LSP_main.cpp:

Go to the source code of this file.

Typedefs

using json = nlohmann::json

Functions

static std::string readMessage ()
static void writeMessage (const json &msg)
static json makeResponse (const json &id, json result)
static json makeError (const json &id, int code, const std::string &message)
static json makeNotification (const std::string &method, json params)
static void publishDiagnostics (const std::string &uri, const std::vector< Phasor::LSP::Diagnostic > &diags)
static json makePointRange (size_t line, size_t col)
static json handleInitialize (const json &)
static json handleHover (Phasor::LSP &lsp, const json &params)
static json handleDefinition (Phasor::LSP &lsp, const json &params)
int main ()

Typedef Documentation

◆ json

using json = nlohmann::json

Definition at line 11 of file LSP_main.cpp.

Function Documentation

◆ handleDefinition()

json handleDefinition ( Phasor::LSP & lsp,
const json & params )
static

Definition at line 108 of file LSP_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleHover()

json handleHover ( Phasor::LSP & lsp,
const json & params )
static

Definition at line 92 of file LSP_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleInitialize()

json handleInitialize ( const json & )
static

Definition at line 83 of file LSP_main.cpp.

Here is the caller graph for this function:

◆ main()

int main ( )

Definition at line 121 of file LSP_main.cpp.

Here is the call graph for this function:

◆ makeError()

json makeError ( const json & id,
int code,
const std::string & message )
static

Definition at line 54 of file LSP_main.cpp.

Here is the caller graph for this function:

◆ makeNotification()

json makeNotification ( const std::string & method,
json params )
static

Definition at line 59 of file LSP_main.cpp.

Here is the caller graph for this function:

◆ makePointRange()

json makePointRange ( size_t line,
size_t col )
static

Definition at line 78 of file LSP_main.cpp.

Here is the caller graph for this function:

◆ makeResponse()

json makeResponse ( const json & id,
json result )
static

Definition at line 49 of file LSP_main.cpp.

Here is the caller graph for this function:

◆ publishDiagnostics()

void publishDiagnostics ( const std::string & uri,
const std::vector< Phasor::LSP::Diagnostic > & diags )
static

Definition at line 64 of file LSP_main.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ readMessage()

std::string readMessage ( )
static

Definition at line 13 of file LSP_main.cpp.

Here is the caller graph for this function:

◆ writeMessage()

void writeMessage ( const json & msg)
static

Definition at line 42 of file LSP_main.cpp.

Here is the caller graph for this function: