v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::torque::ls Namespace Reference

Classes

class  BaseJsonAccessor
 
class  Diagnostic
 
class  DidChangeWatchedFilesParams
 
class  DidChangeWatchedFilesRegistrationOptions
 
class  DocumentSymbolParams
 
class  FileEvent
 
class  FileListParams
 
class  FileSystemWatcher
 
class  InitializeParams
 
class  InitializeResult
 
class  JsonGrammar
 
struct  JsonParserResult
 
class  JsonPosition
 
struct  JsonValue
 
class  Location
 
class  Message
 
class  NestedJsonAccessor
 
class  PublishDiagnosticsParams
 
class  Range
 
class  Registration
 
class  RegistrationParams
 
class  Request
 
class  Response
 
class  ResponseArrayResult
 
class  ResponseError
 
class  SaveOptions
 
class  ServerCapabilities
 
class  SymbolInformation
 
class  TextDocumentIdentifier
 
class  TextDocumentPositionParams
 
class  TextDocumentSyncOptions
 

Typedefs

using JsonMember = std::pair<std::string, JsonValue>
 
using JsonObject = std::map<std::string, JsonValue>
 
using JsonArray = std::vector<JsonValue>
 
using MessageWriter = std::function<void(JsonValue)>
 
using InitializeRequest = Request<InitializeParams>
 
using RegistrationRequest = Request<RegistrationParams>
 
using TorqueFileListNotification = Request<FileListParams>
 
using GotoDefinitionRequest = Request<TextDocumentPositionParams>
 
using DidChangeWatchedFilesNotification = Request<DidChangeWatchedFilesParams>
 
using PublishDiagnosticsNotification = Request<PublishDiagnosticsParams>
 
using DocumentSymbolRequest = Request<DocumentSymbolParams>
 
using InitializeResponse = Response<InitializeResult>
 
using GotoDefinitionResponse = Response<Location>
 
using DocumentSymbolResponse = ResponseArrayResult<SymbolInformation>
 

Enumerations

enum  SymbolKind {
  kFile = 1 , kNamespace = 3 , kClass = 5 , kMethod = 6 ,
  kProperty = 7 , kField = 8 , kConstructor = 9 , kFunction = 12 ,
  kVariable = 13 , kConstant = 14 , kStruct = 23
}
 

Functions

template<bool value>
std::optional< ParseResultMakeBoolLiteral (ParseResultIterator *child_results)
 
std::optional< ParseResultMakeNullLiteral (ParseResultIterator *child_results)
 
std::optional< ParseResultMakeNumberLiteral (ParseResultIterator *child_results)
 
std::optional< ParseResultMakeStringLiteral (ParseResultIterator *child_results)
 
std::optional< ParseResultMakeArray (ParseResultIterator *child_results)
 
std::optional< ParseResultMakeMember (ParseResultIterator *child_results)
 
std::optional< ParseResultMakeObject (ParseResultIterator *child_results)
 
JsonParserResult ParseJson (const std::string &input)
 
std::string SerializeToString (const JsonValue &value)
 
JsonValue ReadMessage ()
 
void WriteMessage (JsonValue message)
 
void CompilationFinished (TorqueCompilerResult result, MessageWriter writer)
 
void HandleMessage (JsonValue raw_message, MessageWriter writer)
 
int WrappedMain (int argc, const char **argv)
 

Variables

static const char kContentLength [] = "Content-Length: "
 
static const size_t kContentLengthSize = sizeof(kContentLength) - 1
 
constexpr const char * kProtocolLineEnding = "\r\n\r\n"
 

Typedef Documentation

◆ DidChangeWatchedFilesNotification

◆ DocumentSymbolRequest

◆ DocumentSymbolResponse

◆ GotoDefinitionRequest

◆ GotoDefinitionResponse

◆ InitializeRequest

◆ InitializeResponse

◆ JsonArray

Definition at line 23 of file json.h.

◆ JsonMember

using v8::internal::torque::ls::JsonMember = std::pair<std::string, JsonValue>

Definition at line 35 of file json-parser.cc.

◆ JsonObject

using v8::internal::torque::ls::JsonObject = std::map<std::string, JsonValue>

Definition at line 22 of file json.h.

◆ MessageWriter

using v8::internal::torque::ls::MessageWriter = std::function<void(JsonValue)>

Definition at line 27 of file message-handler.h.

◆ PublishDiagnosticsNotification

◆ RegistrationRequest

◆ TorqueFileListNotification

Enumeration Type Documentation

◆ SymbolKind

Enumerator
kFile 
kNamespace 
kClass 
kMethod 
kProperty 
kField 
kConstructor 
kFunction 
kVariable 
kConstant 
kStruct 

Definition at line 292 of file message.h.

Function Documentation

◆ CompilationFinished()

V8_EXPORT_PRIVATE void v8::internal::torque::ls::CompilationFinished ( TorqueCompilerResult result,
MessageWriter writer )

Definition at line 180 of file message-handler.cc.

Here is the call graph for this function:

◆ HandleMessage()

V8_EXPORT_PRIVATE void v8::internal::torque::ls::HandleMessage ( JsonValue raw_message,
MessageWriter writer )

Definition at line 349 of file message-handler.cc.

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

◆ MakeArray()

std::optional< ParseResult > v8::internal::torque::ls::MakeArray ( ParseResultIterator * child_results)

Definition at line 61 of file json-parser.cc.

Here is the call graph for this function:

◆ MakeBoolLiteral()

template<bool value>
std::optional< ParseResult > v8::internal::torque::ls::MakeBoolLiteral ( ParseResultIterator * child_results)

Definition at line 38 of file json-parser.cc.

Here is the call graph for this function:

◆ MakeMember()

std::optional< ParseResult > v8::internal::torque::ls::MakeMember ( ParseResultIterator * child_results)

Definition at line 66 of file json-parser.cc.

Here is the call graph for this function:

◆ MakeNullLiteral()

std::optional< ParseResult > v8::internal::torque::ls::MakeNullLiteral ( ParseResultIterator * child_results)

Definition at line 42 of file json-parser.cc.

◆ MakeNumberLiteral()

std::optional< ParseResult > v8::internal::torque::ls::MakeNumberLiteral ( ParseResultIterator * child_results)

Definition at line 48 of file json-parser.cc.

Here is the call graph for this function:

◆ MakeObject()

std::optional< ParseResult > v8::internal::torque::ls::MakeObject ( ParseResultIterator * child_results)

Definition at line 74 of file json-parser.cc.

Here is the call graph for this function:

◆ MakeStringLiteral()

std::optional< ParseResult > v8::internal::torque::ls::MakeStringLiteral ( ParseResultIterator * child_results)

Definition at line 55 of file json-parser.cc.

Here is the call graph for this function:

◆ ParseJson()

V8_EXPORT_PRIVATE JsonParserResult v8::internal::torque::ls::ParseJson ( const std::string & input)

Definition at line 181 of file json-parser.cc.

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

◆ ReadMessage()

JsonValue v8::internal::torque::ls::ReadMessage ( )

Definition at line 34 of file message-handler.cc.

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

◆ SerializeToString()

std::string v8::internal::torque::ls::SerializeToString ( const JsonValue & value)

Definition at line 60 of file json.cc.

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

◆ WrappedMain()

int v8::internal::torque::ls::WrappedMain ( int argc,
const char ** argv )

Definition at line 20 of file torque-language-server.cc.

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

◆ WriteMessage()

void v8::internal::torque::ls::WriteMessage ( JsonValue message)

Definition at line 54 of file message-handler.cc.

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

Variable Documentation

◆ kContentLength

const char v8::internal::torque::ls::kContentLength[] = "Content-Length: "
static

Definition at line 24 of file message-handler.cc.

◆ kContentLengthSize

const size_t v8::internal::torque::ls::kContentLengthSize = sizeof(kContentLength) - 1
static

Definition at line 25 of file message-handler.cc.

◆ kProtocolLineEnding

const char* v8::internal::torque::ls::kProtocolLineEnding = "\r\n\r\n"
constexpr

Definition at line 31 of file message-handler.cc.