#include <algorithm>
#include "src/torque/ls/message-handler.h"
#include "src/torque/ls/globals.h"
#include "src/torque/ls/json-parser.h"
#include "src/torque/ls/message-pipe.h"
#include "src/torque/ls/message.h"
#include "src/torque/server-data.h"
#include "src/torque/source-positions.h"
#include "src/torque/torque-compiler.h"
EXPORT_CONTEXTUAL_VARIABLE(v8::internal::torque::DiagnosticsFiles)
namespace v8 {
namespace internal {
namespace torque {
namespace ls {
static const char kContentLength[] = …;
static const size_t kContentLengthSize = …;
#ifdef V8_OS_WIN
constexpr const char* kProtocolLineEnding = "\n\n";
#else
constexpr const char* kProtocolLineEnding = …;
#endif
JsonValue ReadMessage() { … }
void WriteMessage(JsonValue message) { … }
namespace {
void ResetCompilationErrorDiagnostics(MessageWriter writer) { … }
class DiagnosticCollector { … };
void SendCompilationDiagnostics(const TorqueCompilerResult& result,
MessageWriter writer) { … }
}
void CompilationFinished(TorqueCompilerResult result, MessageWriter writer) { … }
namespace {
void RecompileTorque(MessageWriter writer) { … }
void RecompileTorqueWithDiagnostics(MessageWriter writer) { … }
void HandleInitializeRequest(InitializeRequest request, MessageWriter writer) { … }
void HandleInitializedNotification(MessageWriter writer) { … }
void HandleTorqueFileListNotification(TorqueFileListNotification notification,
MessageWriter writer) { … }
void HandleGotoDefinitionRequest(GotoDefinitionRequest request,
MessageWriter writer) { … }
void HandleChangeWatchedFilesNotification(
DidChangeWatchedFilesNotification notification, MessageWriter writer) { … }
void HandleDocumentSymbolRequest(DocumentSymbolRequest request,
MessageWriter writer) { … }
}
void HandleMessage(JsonValue raw_message, MessageWriter writer) { … }
}
}
}
}