nixd
|
Whether current platform treats paths case insensitively. More...
Namespaces | |
namespace | detail |
Classes | |
struct | ApplyWorkspaceEditParams |
struct | ApplyWorkspaceEditResponse |
struct | ASTNode |
struct | ASTParams |
struct | CallHierarchyIncomingCall |
Represents an incoming call, e.g. a caller of a method or constructor. More... | |
struct | CallHierarchyIncomingCallsParams |
The parameter of a callHierarchy/incomingCalls request. More... | |
struct | CallHierarchyItem |
struct | CallHierarchyOutgoingCall |
struct | CallHierarchyOutgoingCallsParams |
The parameter of a callHierarchy/outgoingCalls request. More... | |
struct | CallHierarchyPrepareParams |
The parameter of a textDocument/prepareCallHierarchy request. More... | |
struct | ChangeAnnotation |
struct | ClangdCompileCommand |
struct | ClientCapabilities |
struct | CodeAction |
struct | CodeActionContext |
struct | CodeActionParams |
struct | CodeDescription |
Structure to capture a description for an error code. More... | |
struct | Command |
struct | CompletionContext |
struct | CompletionItem |
struct | CompletionList |
Represents a collection of completion items to be presented in the editor. More... | |
struct | CompletionParams |
struct | ConfigurationItem |
struct | ConfigurationParams |
struct | ConfigurationSettings |
struct | Diagnostic |
struct | DiagnosticRelatedInformation |
struct | DidChangeConfigurationParams |
struct | DidChangeTextDocumentParams |
struct | DidChangeWatchedFilesParams |
struct | DidCloseTextDocumentParams |
struct | DidOpenTextDocumentParams |
struct | DidSaveTextDocumentParams |
struct | DocumentFormattingParams |
struct | DocumentHighlight |
struct | DocumentLink |
struct | DocumentLinkParams |
Parameters for the document link request. More... | |
struct | DocumentOnTypeFormattingParams |
struct | DocumentRangeFormattingParams |
struct | DocumentSymbol |
struct | DocumentSymbolParams |
class | DraftStore |
class | Event |
An Event<T> allows events of type T to be broadcast to listeners. More... | |
struct | ExecuteCommandParams |
struct | FileEvent |
struct | FileStatus |
struct | FoldingRange |
Stores information about a region of code that can be folded. More... | |
struct | FoldingRangeParams |
struct | HandlerRegistry |
struct | Hover |
struct | InactiveRegionsParams |
class | InboundPort |
struct | InitializationOptions |
struct | InitializeParams |
struct | InlayHint |
Inlay hint information. More... | |
struct | InlayHintsParams |
A parameter literal used in inlay hint requests. More... | |
class | Key |
struct | Location |
class | Logger |
Interface to allow custom logging in clangd. More... | |
class | LoggingSession |
Only one LoggingSession can be active at a time. More... | |
struct | LSPDiagnosticCompare |
class | LSPError |
class | LSPServer |
struct | MarkupContent |
class | MessageHandler |
struct | NoParams |
class | OutboundPort |
struct | ParameterInformation |
A single parameter of a particular signature. More... | |
struct | Position |
struct | ProgressParams |
struct | PublishDiagnosticsParams |
struct | Range |
struct | ReferenceContext |
struct | ReferenceLocation |
struct | ReferenceParams |
struct | RenameParams |
struct | ResolveTypeHierarchyItemParams |
Parameters for the typeHierarchy/resolve request. More... | |
struct | SelectionRange |
struct | SelectionRangeParams |
struct | SemanticToken |
struct | SemanticTokens |
A versioned set of tokens. More... | |
struct | SemanticTokensDeltaParams |
struct | SemanticTokensEdit |
Describes a replacement of a contiguous range of semanticTokens. More... | |
struct | SemanticTokensOrDelta |
struct | SemanticTokensParams |
Body of textDocument/semanticTokens/full request. More... | |
struct | ShowMessageParams |
struct | SignatureHelp |
Represents the signature of a callable. More... | |
struct | SignatureInformation |
Represents the signature of something callable. More... | |
class | StreamLogger |
struct | SymbolInformation |
struct | TextDocumentContentChangeEvent |
struct | TextDocumentEdit |
struct | TextDocumentIdentifier |
struct | TextDocumentItem |
struct | TextDocumentPositionParams |
struct | TextEdit |
struct | TweakArgs |
struct | TypeHierarchyItem |
struct | TypeHierarchyPrepareParams |
class | URI |
struct | URIForFile |
class | URIScheme |
struct | VersionedTextDocumentIdentifier |
struct | WorkDoneProgressBegin |
struct | WorkDoneProgressCreateParams |
struct | WorkDoneProgressEnd |
Signals the end of progress reporting. More... | |
struct | WorkDoneProgressReport |
Reporting progress is done using the following payload. More... | |
struct | WorkspaceEdit |
struct | WorkspaceSymbolParams |
The parameters of a Workspace Symbol Request. More... | |
Typedefs | |
template<typename T > | |
using | Callback = llvm::unique_function<void(llvm::Expected<T>)> |
using | Path = std::string |
using | PathRef = llvm::StringRef |
using | ChangeAnnotationIdentifier = std::string |
using | InitializedParams = NoParams |
using | CompletionItemKindBitset = std::bitset<CompletionItemKindMax + 1> |
using | SymbolKindBitset = std::bitset<SymbolKindMax + 1> |
typedef llvm::Registry< URIScheme > | URISchemeRegistry |
Functions | |
template<typename... Ts> | |
void | elog (const char *Fmt, Ts &&...Vals) |
template<typename... Ts> | |
void | log (const char *Fmt, Ts &&...Vals) |
template<typename... Ts> | |
void | vlog (const char *Fmt, Ts &&...Vals) |
template<typename... Ts> | |
llvm::Error | error (std::error_code EC, const char *Fmt, Ts &&...Vals) |
template<typename... Ts> | |
llvm::Error | error (const char *Fmt, Ts &&...Vals) |
llvm::Error | error (std::error_code EC, std::string Msg) |
llvm::Error | error (std::string Msg) |
template<typename T > | |
llvm::Expected< T > | parseParam (const llvm::json::Value &Raw, llvm::StringRef PayloadName, llvm::StringRef PayloadKind) |
template<> | |
llvm::Expected< llvm::json::Value > | parseParam (const llvm::json::Value &Raw, llvm::StringRef PayloadName, llvm::StringRef PayloadKind) |
std::string | maybeCaseFoldPath (PathRef Path) |
bool | pathEqual (PathRef, PathRef) |
bool | pathStartsWith (PathRef Ancestor, PathRef Path, llvm::sys::path::Style Style=llvm::sys::path::Style::native) |
PathRef | absoluteParent (PathRef Path) |
llvm::json::Value | toJSON (const URIForFile &U) |
Serialize/deserialize URIForFile to/from a string URI. | |
bool | fromJSON (const llvm::json::Value &, URIForFile &, llvm::json::Path) |
llvm::json::Value | toJSON (const TextDocumentIdentifier &) |
bool | fromJSON (const llvm::json::Value &, TextDocumentIdentifier &, llvm::json::Path) |
llvm::json::Value | toJSON (const VersionedTextDocumentIdentifier &) |
bool | fromJSON (const llvm::json::Value &, VersionedTextDocumentIdentifier &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, Position &, llvm::json::Path) |
llvm::json::Value | toJSON (const Position &) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const Position &) |
bool | fromJSON (const llvm::json::Value &, Range &, llvm::json::Path) |
llvm::json::Value | toJSON (const Range &) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const Range &) |
llvm::json::Value | toJSON (const Location &) |
bool | fromJSON (const llvm::json::Value &, Location &, llvm::json::Path) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const Location &) |
llvm::json::Value | toJSON (const ReferenceLocation &) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const ReferenceLocation &) |
bool | operator== (const TextEdit &L, const TextEdit &R) |
bool | fromJSON (const llvm::json::Value &, TextEdit &, llvm::json::Path) |
llvm::json::Value | toJSON (const TextEdit &) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const TextEdit &) |
bool | fromJSON (const llvm::json::Value &, ChangeAnnotation &, llvm::json::Path) |
llvm::json::Value | toJSON (const ChangeAnnotation &) |
bool | fromJSON (const llvm::json::Value &, TextDocumentEdit &, llvm::json::Path) |
llvm::json::Value | toJSON (const TextDocumentEdit &) |
bool | fromJSON (const llvm::json::Value &, TextDocumentItem &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &E, TraceLevel &Out, llvm::json::Path) |
llvm::json::Value | toJSON (const NoParams &) |
bool | fromJSON (const llvm::json::Value &, NoParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, CompletionItemKind &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, CompletionItemKindBitset &, llvm::json::Path) |
CompletionItemKind | adjustKindToCapability (CompletionItemKind Kind, CompletionItemKindBitset &SupportedCompletionItemKinds) |
bool | fromJSON (const llvm::json::Value &, SymbolKind &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, SymbolKindBitset &, llvm::json::Path) |
SymbolKind | adjustKindToCapability (SymbolKind Kind, SymbolKindBitset &supportedSymbolKinds) |
llvm::json::Value | toJSON (const OffsetEncoding &) |
bool | fromJSON (const llvm::json::Value &, OffsetEncoding &, llvm::json::Path) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, OffsetEncoding) |
bool | fromJSON (const llvm::json::Value &, MarkupKind &, llvm::json::Path) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &OS, MarkupKind) |
bool | fromJSON (const llvm::json::Value &, ClientCapabilities &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, ClangdCompileCommand &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, ConfigurationSettings &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, InitializationOptions &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, InitializeParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const WorkDoneProgressCreateParams &P) |
template<typename T > | |
llvm::json::Value | toJSON (const ProgressParams< T > &P) |
llvm::json::Value | toJSON (const WorkDoneProgressBegin &) |
llvm::json::Value | toJSON (const WorkDoneProgressReport &) |
llvm::json::Value | toJSON (const WorkDoneProgressEnd &) |
llvm::json::Value | toJSON (const MessageType &) |
llvm::json::Value | toJSON (const ShowMessageParams &) |
bool | fromJSON (const llvm::json::Value &, DidOpenTextDocumentParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, DidCloseTextDocumentParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, DidSaveTextDocumentParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, TextDocumentContentChangeEvent &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, DidChangeTextDocumentParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &E, FileChangeType &Out, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, FileEvent &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, DidChangeWatchedFilesParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, DidChangeConfigurationParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, DocumentRangeFormattingParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, DocumentOnTypeFormattingParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, DocumentFormattingParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, DocumentSymbolParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const DiagnosticRelatedInformation &) |
llvm::json::Value | toJSON (DiagnosticTag Tag) |
llvm::json::Value | toJSON (const CodeDescription &) |
llvm::json::Value | toJSON (const Diagnostic &) |
bool | fromJSON (const llvm::json::Value &, Diagnostic &, llvm::json::Path) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const Diagnostic &) |
llvm::json::Value | toJSON (const PublishDiagnosticsParams &) |
bool | fromJSON (const llvm::json::Value &, CodeActionContext &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, CodeActionParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, WorkspaceEdit &, llvm::json::Path) |
llvm::json::Value | toJSON (const WorkspaceEdit &WE) |
bool | fromJSON (const llvm::json::Value &, TweakArgs &, llvm::json::Path) |
llvm::json::Value | toJSON (const TweakArgs &A) |
bool | fromJSON (const llvm::json::Value &, ExecuteCommandParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const Command &C) |
llvm::json::Value | toJSON (const CodeAction &) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &O, const DocumentSymbol &S) |
llvm::json::Value | toJSON (const DocumentSymbol &S) |
llvm::json::Value | toJSON (const SymbolInformation &) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const SymbolInformation &) |
bool | fromJSON (const llvm::json::Value &, WorkspaceSymbolParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const ApplyWorkspaceEditParams &) |
bool | fromJSON (const llvm::json::Value &, ApplyWorkspaceEditResponse &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, TextDocumentPositionParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, CompletionContext &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, CompletionParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const MarkupContent &MC) |
bool | fromJSON (const llvm::json::Value &, MarkupContent &, llvm::json::Path) |
llvm::json::Value | toJSON (const Hover &H) |
llvm::json::Value | toJSON (const CompletionItem &) |
bool | fromJSON (const llvm::json::Value &, CompletionItem &, llvm::json::Path) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const CompletionItem &) |
bool | operator< (const CompletionItem &, const CompletionItem &) |
llvm::json::Value | toJSON (const CompletionList &) |
llvm::json::Value | toJSON (const ParameterInformation &) |
llvm::json::Value | toJSON (const SignatureInformation &) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const SignatureInformation &) |
llvm::json::Value | toJSON (const SignatureHelp &) |
bool | fromJSON (const llvm::json::Value &, RenameParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const DocumentHighlight &DH) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const DocumentHighlight &) |
bool | fromJSON (const llvm::json::Value &E, TypeHierarchyDirection &Out, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, TypeHierarchyPrepareParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const TypeHierarchyItem::ResolveParams &) |
bool | fromJSON (const TypeHierarchyItem::ResolveParams &) |
llvm::json::Value | toJSON (const TypeHierarchyItem &) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const TypeHierarchyItem &) |
bool | fromJSON (const llvm::json::Value &, TypeHierarchyItem &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, ResolveTypeHierarchyItemParams &, llvm::json::Path) |
llvm::json::Value | toJSON (SymbolTag) |
llvm::json::Value | toJSON (const CallHierarchyItem &) |
bool | fromJSON (const llvm::json::Value &, CallHierarchyItem &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &, CallHierarchyIncomingCallsParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const CallHierarchyIncomingCall &) |
bool | fromJSON (const llvm::json::Value &, CallHierarchyOutgoingCallsParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const CallHierarchyOutgoingCall &) |
bool | fromJSON (const llvm::json::Value &, InlayHintsParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const InlayHintKind &) |
llvm::json::Value | toJSON (const InlayHint &) |
bool | operator== (const InlayHint &, const InlayHint &) |
bool | operator< (const InlayHint &, const InlayHint &) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, InlayHintKind) |
bool | fromJSON (const llvm::json::Value &, ReferenceParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const FileStatus &) |
bool | operator== (const SemanticToken &, const SemanticToken &) |
llvm::json::Value | toJSON (const SemanticTokens &) |
bool | fromJSON (const llvm::json::Value &, SemanticTokensParams &, llvm::json::Path) |
bool | fromJSON (const llvm::json::Value &Params, SemanticTokensDeltaParams &R, llvm::json::Path) |
llvm::json::Value | toJSON (const SemanticTokensEdit &) |
llvm::json::Value | toJSON (const SemanticTokensOrDelta &) |
llvm::json::Value | toJSON (const InactiveRegionsParams &InactiveRegions) |
bool | fromJSON (const llvm::json::Value &, SelectionRangeParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const SelectionRange &) |
bool | fromJSON (const llvm::json::Value &, DocumentLinkParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const DocumentLink &DocumentLink) |
bool | fromJSON (const llvm::json::Value &, FoldingRangeParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const FoldingRange &Range) |
bool | fromJSON (const llvm::json::Value &, ASTParams &, llvm::json::Path) |
llvm::json::Value | toJSON (const ASTNode &) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &, const ASTNode &) |
llvm::json::Value | toJSON (const ConfigurationItem &) |
llvm::json::Value | toJSON (const ConfigurationParams &) |
size_t | lspLength (llvm::StringRef Code) |
llvm::Expected< size_t > | positionToOffset (llvm::StringRef Code, Position P, bool AllowColumnsBeyondLineLength=true) |
Position | offsetToPosition (llvm::StringRef Code, size_t Offset) |
void | unionRanges (Range &A, Range B) |
llvm::Error | applyChange (std::string &Contents, const TextDocumentContentChangeEvent &Change) |
Apply an incremental update to a text document. | |
llvm::StringSet | collectWords (llvm::StringRef Content) |
llvm::Error | decodeError (const llvm::json::Object &O) |
Decode the given JSON object into an error. | |
bool | readLine (int fd, const std::atomic< bool > &Close, llvm::SmallString< 128 > &Line) |
llvm::raw_ostream & | operator<< (llvm::raw_ostream &OS, const URIForFile &U) |
bool | fromJSON (const llvm::json::Value &Params, TypeHierarchyItem::ResolveParams &RP, llvm::json::Path P) |
bool | fromJSON (const llvm::json::Value &Params, ReferenceContext &R, llvm::json::Path P) |
Whether current platform treats paths case insensitively.
A Callback<T> is a void function that accepts Expected<T>. This is accepted by ClangdServer functions that logically return T.
Definition at line 14 of file Function.h.
using lspserver::ChangeAnnotationIdentifier = std::string |
Definition at line 223 of file lspserver/include/lspserver/Protocol.h.
using lspserver::CompletionItemKindBitset = std::bitset<CompletionItemKindMax + 1> |
Definition at line 354 of file lspserver/include/lspserver/Protocol.h.
Definition at line 303 of file lspserver/include/lspserver/Protocol.h.
using lspserver::Path = std::string |
using lspserver::PathRef = llvm::StringRef |
using lspserver::SymbolKindBitset = std::bitset<SymbolKindMax + 1> |
Definition at line 393 of file lspserver/include/lspserver/Protocol.h.
typedef llvm::Registry<URIScheme> lspserver::URISchemeRegistry |
The kind of a completion entry.
Definition at line 320 of file lspserver/include/lspserver/Protocol.h.
Definition at line 1171 of file lspserver/include/lspserver/Protocol.h.
Definition at line 870 of file lspserver/include/lspserver/Protocol.h.
Enumerator | |
---|---|
Text | |
Read | |
Write |
Definition at line 1381 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Enumerator | |
---|---|
ParseError | |
InvalidRequest | |
MethodNotFound | |
InvalidParams | |
InternalError | |
ServerNotInitialized | |
UnknownErrorCode | |
RequestCancelled | |
ContentModified |
Definition at line 22 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Enumerator | |
---|---|
Created | The file got created. |
Changed | The file got changed. |
Deleted | The file got deleted. |
Definition at line 782 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Inlay hint kinds.
Definition at line 1584 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Defines whether the insert text in a completion item should be interpreted as plain text or a snippet.
Enumerator | |
---|---|
Missing | |
PlainText | The primary text to be inserted is treated as a plain string. |
Snippet | The primary text to be inserted is treated as a snippet. A snippet can define tab stops and placeholders with See also: https://github.com/Microsoft/vscode/blob/main/src/vs/editor/contrib/snippet/snippet.md |
Definition at line 1219 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Enumerator | |
---|---|
Standard | |
Delimited |
Definition at line 13 of file Connection.h.
|
strong |
Enumerator | |
---|---|
PlainText | |
Markdown |
Definition at line 415 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Enumerator | |
---|---|
Error | An error message. |
Warning | A warning message. |
Info | An information message. |
Log | A log message. |
Definition at line 702 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Enumerator | |
---|---|
UnsupportedEncoding | |
UTF16 | |
UTF8 | |
UTF32 |
Definition at line 399 of file lspserver/include/lspserver/Protocol.h.
|
strong |
A symbol kind.
Definition at line 362 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Enumerator | |
---|---|
Deprecated |
Definition at line 1493 of file lspserver/include/lspserver/Protocol.h.
Defines how the host (editor) should sync document changes to the language server.
Definition at line 307 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Enumerator | |
---|---|
Off | |
Messages | |
Verbose |
Definition at line 291 of file lspserver/include/lspserver/Protocol.h.
Enumerator | |
---|---|
Children | |
Parents | |
Both |
Definition at line 1409 of file lspserver/include/lspserver/Protocol.h.
Variant of parent_path that operates only on absolute paths. Unlike parent_path doesn't consider C: a parent of C:.
CompletionItemKind lspserver::adjustKindToCapability | ( | CompletionItemKind | Kind, |
CompletionItemKindBitset & | SupportedCompletionItemKinds ) |
Definition at line 955 of file lspserver/src/Protocol.cpp.
References Class, CompletionItemKindMin, Enum, EnumMember, File, Folder, fromJSON(), Struct, and Text.
SymbolKind lspserver::adjustKindToCapability | ( | SymbolKind | Kind, |
SymbolKindBitset & | supportedSymbolKinds ) |
Definition at line 282 of file lspserver/src/Protocol.cpp.
References Class, Enum, EnumMember, fromJSON(), String, Struct, and SymbolKindMin.
llvm::Error lspserver::applyChange | ( | std::string & | Contents, |
const TextDocumentContentChangeEvent & | Change ) |
Apply an incremental update to a text document.
Definition at line 190 of file SourceCode.cpp.
References error(), fromJSON(), lspLength(), and positionToOffset().
llvm::StringSet lspserver::collectWords | ( | llvm::StringRef | Content | ) |
Collects words from the source code. Unlike collectIdentifiers:
llvm::Error lspserver::decodeError | ( | const llvm::json::Object & | O | ) |
Decode the given JSON object into an error.
Definition at line 49 of file Connection.cpp.
Referenced by lspserver::InboundPort::dispatch().
Definition at line 52 of file Logger.h.
References lspserver::Logger::Error, fromJSON(), and lspserver::detail::log().
Referenced by lspserver::URIForFile::canonicalize(), lspserver::DraftStore::decodeVersion(), lspserver::InboundPort::dispatch(), lspserver::InboundPort::loop(), parseParam(), and lspserver::InboundPort::readStandardMessage().
Definition at line 76 of file Logger.h.
References lspserver::detail::error(), fromJSON(), and lspserver::detail::wrap().
llvm::Error lspserver::error | ( | std::error_code | EC, |
const char * | Fmt, | ||
Ts &&... | Vals ) |
Definition at line 70 of file Logger.h.
References lspserver::detail::error(), fromJSON(), and lspserver::detail::wrap().
Referenced by applyChange(), lspserver::URI::create(), nixd::AttrSetProvider::onAttrPathComplete(), nixd::AttrSetProvider::onAttrPathInfo(), nixd::AttrSetProvider::onEvalExpr(), nixd::AttrSetProvider::onOptionComplete(), nixd::AttrSetProvider::onOptionInfo(), lspserver::URI::parse(), and positionToOffset().
|
inline |
Definition at line 82 of file Logger.h.
References lspserver::detail::error(), and fromJSON().
|
inline |
Definition at line 86 of file Logger.h.
References lspserver::detail::error(), and fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Response, |
ApplyWorkspaceEditResponse & | R, | ||
llvm::json::Path | P ) |
Definition at line 840 of file lspserver/src/Protocol.cpp.
References lspserver::ApplyWorkspaceEditResponse::applied, lspserver::ApplyWorkspaceEditResponse::failureReason, and fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
ASTParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 1500 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::ASTParams::range, and lspserver::ASTParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
CallHierarchyIncomingCallsParams & | C, | ||
llvm::json::Path | P ) |
Definition at line 1346 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
CallHierarchyItem & | I, | ||
llvm::json::Path | P ) |
Definition at line 1333 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
CallHierarchyOutgoingCallsParams & | C, | ||
llvm::json::Path | P ) |
Definition at line 1356 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
ChangeAnnotation & | R, | ||
llvm::json::Path | P ) |
Definition at line 207 of file lspserver/src/Protocol.cpp.
References lspserver::ChangeAnnotation::description, fromJSON(), lspserver::ChangeAnnotation::label, and lspserver::ChangeAnnotation::needsConfirmation.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
ClangdCompileCommand & | CDbUpdate, | ||
llvm::json::Path | P ) |
Definition at line 1200 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
ClientCapabilities & | R, | ||
llvm::json::Path | P ) |
Definition at line 300 of file lspserver/src/Protocol.cpp.
References lspserver::ClientCapabilities::CancelsStaleRequests, lspserver::ClientCapabilities::ChangeAnnotation, lspserver::ClientCapabilities::CodeActionStructure, lspserver::ClientCapabilities::CompletionDocumentationFormat, lspserver::ClientCapabilities::CompletionFixes, lspserver::ClientCapabilities::CompletionItemKinds, lspserver::ClientCapabilities::CompletionSnippets, lspserver::ClientCapabilities::DiagnosticCategory, lspserver::ClientCapabilities::DiagnosticFixes, lspserver::ClientCapabilities::DiagnosticRelatedInformation, lspserver::ClientCapabilities::DocumentChanges, fromJSON(), lspserver::ClientCapabilities::HasSignatureHelp, lspserver::ClientCapabilities::HierarchicalDocumentSymbol, lspserver::ClientCapabilities::HoverContentFormat, lspserver::ClientCapabilities::ImplicitProgressCreation, lspserver::ClientCapabilities::InactiveRegions, Info, lspserver::ClientCapabilities::LineFoldingOnly, lspserver::ClientCapabilities::offsetEncoding, lspserver::ClientCapabilities::OffsetsInSignatureHelp, Parameter, lspserver::ClientCapabilities::ReferenceContainer, lspserver::ClientCapabilities::RenamePrepareSupport, lspserver::ClientCapabilities::SemanticTokenRefreshSupport, lspserver::ClientCapabilities::SemanticTokens, lspserver::ClientCapabilities::SignatureHelpDocumentationFormat, lspserver::ClientCapabilities::TheiaSemanticHighlighting, lspserver::ClientCapabilities::WorkDoneProgress, lspserver::ClientCapabilities::WorkspaceConfiguration, and lspserver::ClientCapabilities::WorkspaceSymbolKinds.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
CodeActionContext & | R, | ||
llvm::json::Path | P ) |
Definition at line 664 of file lspserver/src/Protocol.cpp.
References lspserver::CodeActionContext::diagnostics, fromJSON(), and lspserver::CodeActionContext::only.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
CodeActionParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 695 of file lspserver/src/Protocol.cpp.
References lspserver::CodeActionParams::context, fromJSON(), lspserver::CodeActionParams::range, and lspserver::CodeActionParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
CompletionContext & | R, | ||
llvm::json::Path | P ) |
Definition at line 854 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::CompletionContext::triggerCharacter, and lspserver::CompletionContext::triggerKind.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
CompletionItem & | R, | ||
llvm::json::Path | P ) |
Definition at line 1017 of file lspserver/src/Protocol.cpp.
References lspserver::CompletionItem::additionalTextEdits, lspserver::CompletionItem::data, lspserver::CompletionItem::detail, lspserver::CompletionItem::documentation, lspserver::CompletionItem::filterText, fromJSON(), lspserver::CompletionItem::insertText, lspserver::CompletionItem::insertTextFormat, lspserver::CompletionItem::kind, lspserver::CompletionItem::label, lspserver::CompletionItem::sortText, and lspserver::CompletionItem::textEdit.
bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
CompletionItemKind & | Out, | ||
llvm::json::Path | P ) |
Definition at line 942 of file lspserver/src/Protocol.cpp.
References fromJSON(), Text, and TypeParameter.
bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
CompletionItemKindBitset & | Out, | ||
llvm::json::Path | P ) |
Definition at line 976 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
CompletionParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 865 of file lspserver/src/Protocol.cpp.
References lspserver::CompletionParams::context, fromJSON(), and lspserver::CompletionParams::limit.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
ConfigurationSettings & | S, | ||
llvm::json::Path | P ) |
Definition at line 1207 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
Diagnostic & | R, | ||
llvm::json::Path | P ) |
Definition at line 640 of file lspserver/src/Protocol.cpp.
References lspserver::Diagnostic::category, lspserver::Diagnostic::code, lspserver::Diagnostic::data, fromJSON(), lspserver::Diagnostic::message, lspserver::Diagnostic::range, lspserver::Diagnostic::severity, and lspserver::Diagnostic::source.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DidChangeConfigurationParams & | CCP, | ||
llvm::json::Path | P ) |
Definition at line 1194 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DidChangeTextDocumentParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 536 of file lspserver/src/Protocol.cpp.
References lspserver::DidChangeTextDocumentParams::contentChanges, lspserver::DidChangeTextDocumentParams::forceRebuild, fromJSON(), lspserver::DidChangeTextDocumentParams::textDocument, and lspserver::DidChangeTextDocumentParams::wantDiagnostics.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DidChangeWatchedFilesParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 563 of file lspserver/src/Protocol.cpp.
References lspserver::DidChangeWatchedFilesParams::changes, and fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DidCloseTextDocumentParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 524 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::DidCloseTextDocumentParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DidOpenTextDocumentParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 518 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::DidOpenTextDocumentParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DidSaveTextDocumentParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 530 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::DidSaveTextDocumentParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DocumentFormattingParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 589 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::DocumentFormattingParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DocumentLinkParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 1463 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::DocumentLinkParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DocumentOnTypeFormattingParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 582 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentOnTypeFormattingParams::ch, fromJSON(), lspserver::DocumentOnTypeFormattingParams::position, and lspserver::DocumentOnTypeFormattingParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DocumentRangeFormattingParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 576 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::DocumentRangeFormattingParams::range, and lspserver::DocumentRangeFormattingParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
DocumentSymbolParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 595 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::DocumentSymbolParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
ExecuteCommandParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 710 of file lspserver/src/Protocol.cpp.
References lspserver::ExecuteCommandParams::argument, lspserver::ExecuteCommandParams::command, and fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
FileEvent & | R, | ||
llvm::json::Path | P ) |
Definition at line 557 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::FileEvent::type, and lspserver::FileEvent::uri.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
FoldingRangeParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 1476 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::FoldingRangeParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
InitializationOptions & | Opts, | ||
llvm::json::Path | P ) |
Definition at line 1216 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
InitializeParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 454 of file lspserver/src/Protocol.cpp.
References lspserver::InitializeParams::capabilities, fromJSON(), lspserver::InitializeParams::initializationOptions, lspserver::InitializeParams::processId, lspserver::InitializeParams::rawCapabilities, lspserver::InitializeParams::rootPath, lspserver::InitializeParams::rootUri, and lspserver::InitializeParams::trace.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
InlayHintsParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 1366 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::InlayHintsParams::range, and lspserver::InlayHintsParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
Location & | R, | ||
llvm::json::Path | P ) |
Definition at line 157 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::Location::range, and lspserver::Location::uri.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
MarkupContent & | R, | ||
llvm::json::Path | P ) |
Definition at line 924 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::MarkupContent::kind, and lspserver::MarkupContent::value.
bool lspserver::fromJSON | ( | const llvm::json::Value & | V, |
MarkupKind & | K, | ||
llvm::json::Path | P ) |
Definition at line 893 of file lspserver/src/Protocol.cpp.
References fromJSON(), Markdown, and PlainText.
|
inline |
Definition at line 300 of file lspserver/include/lspserver/Protocol.h.
bool lspserver::fromJSON | ( | const llvm::json::Value & | V, |
OffsetEncoding & | OE, | ||
llvm::json::Path | P ) |
Definition at line 1432 of file lspserver/src/Protocol.cpp.
References fromJSON(), UnsupportedEncoding, UTF16, UTF32, and UTF8.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
Position & | R, | ||
llvm::json::Path | P ) |
Definition at line 117 of file lspserver/src/Protocol.cpp.
References lspserver::Position::character, fromJSON(), and lspserver::Position::line.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
Range & | R, | ||
llvm::json::Path | P ) |
Definition at line 134 of file lspserver/src/Protocol.cpp.
References lspserver::Range::end, fromJSON(), and lspserver::Range::start.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
ReferenceParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 1307 of file lspserver/src/Protocol.cpp.
References lspserver::ReferenceParams::context, and fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
RenameParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 1101 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::RenameParams::newName, lspserver::RenameParams::position, and lspserver::RenameParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
ResolveTypeHierarchyItemParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 1293 of file lspserver/src/Protocol.cpp.
References lspserver::ResolveTypeHierarchyItemParams::direction, fromJSON(), lspserver::ResolveTypeHierarchyItemParams::item, and lspserver::ResolveTypeHierarchyItemParams::resolve.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
SelectionRangeParams & | S, | ||
llvm::json::Path | P ) |
Definition at line 1448 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
SemanticTokensParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 1165 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::SemanticTokensParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
SymbolKind & | Out, | ||
llvm::json::Path | P ) |
Definition at line 258 of file lspserver/src/Protocol.cpp.
References File, fromJSON(), and TypeParameter.
bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
SymbolKindBitset & | Out, | ||
llvm::json::Path | P ) |
Definition at line 269 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
TextDocumentContentChangeEvent & | R, | ||
llvm::json::Path | P ) |
Definition at line 569 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::TextDocumentContentChangeEvent::range, lspserver::TextDocumentContentChangeEvent::rangeLength, and lspserver::TextDocumentContentChangeEvent::text.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
TextDocumentEdit & | R, | ||
llvm::json::Path | P ) |
Definition at line 223 of file lspserver/src/Protocol.cpp.
References lspserver::TextDocumentEdit::edits, fromJSON(), and lspserver::TextDocumentEdit::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
TextDocumentIdentifier & | R, | ||
llvm::json::Path | P ) |
Definition at line 98 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::TextDocumentIdentifier::uri.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
TextDocumentItem & | R, | ||
llvm::json::Path | P ) |
Definition at line 183 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::TextDocumentItem::languageId, lspserver::TextDocumentItem::text, lspserver::TextDocumentItem::uri, and lspserver::TextDocumentItem::version.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
TextDocumentPositionParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 847 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::TextDocumentPositionParams::position, and lspserver::TextDocumentPositionParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
TextEdit & | R, | ||
llvm::json::Path | P ) |
Definition at line 190 of file lspserver/src/Protocol.cpp.
References lspserver::TextEdit::annotationId, fromJSON(), lspserver::TextEdit::newText, and lspserver::TextEdit::range.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
TweakArgs & | A, | ||
llvm::json::Path | P ) |
Definition at line 824 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
TypeHierarchyItem & | I, | ||
llvm::json::Path | P ) |
Definition at line 1278 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
TypeHierarchyPrepareParams & | R, | ||
llvm::json::Path | P ) |
bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
URIForFile & | R, | ||
llvm::json::Path | P ) |
Definition at line 63 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::URIForFile::fromURI(), and lspserver::URI::parse().
Referenced by lspserver::HandlerRegistry::addCommand(), lspserver::DraftStore::addDraft(), lspserver::HandlerRegistry::addMethod(), lspserver::HandlerRegistry::addNotification(), adjustKindToCapability(), adjustKindToCapability(), applyChange(), lspserver::DraftStore::asVFS(), lspserver::Event< T >::broadcast(), lspserver::OutboundPort::call(), lspserver::URIForFile::canonicalize(), lspserver::Range::contains(), lspserver::URI::create(), lspserver::URI::create(), lspserver::URI::createFile(), lspserver::detail::debugType(), lspserver::DraftStore::decodeVersion(), lspserver::InboundPort::dispatch(), elog(), lspserver::DraftStore::encodeVersion(), error(), error(), error(), lspserver::detail::error(), error(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), lspserver::URIForFile::fromURI(), lspserver::DraftStore::getActiveFiles(), lspserver::DraftStore::getDraft(), nixd::getLSPSeverity(), lspserver::URI::includeSpelling(), lspserver::Logger::indicator(), log(), lspserver::StreamLogger::log(), lspserver::LSPError::log(), lspserver::detail::log(), lspserver::LoggingSession::LoggingSession(), lspserver::detail::logImpl(), lspserver::InboundPort::loop(), lspLength(), lspserver::OutboundPort::notify(), lspserver::Event< T >::observe(), offsetToPosition(), operator<(), operator<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), operator==(), operator==(), operator==(), lspserver::URI::parse(), parseParam(), positionToOffset(), lspserver::InboundPort::readDelimitedMessage(), readLine(), lspserver::InboundPort::readMessage(), lspserver::InboundPort::readStandardMessage(), lspserver::DraftStore::removeDraft(), lspserver::OutboundPort::reply(), lspserver::URI::resolve(), lspserver::URI::resolve(), lspserver::URI::resolvePath(), lspserver::OutboundPort::sendMessage(), lspserver::LSPServer::switchStreamStyle(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), nixd::toLSPTags(), lspserver::URI::toString(), lspserver::URI::URI(), vlog(), lspserver::detail::wrap(), lspserver::detail::wrap(), lspserver::Event< T >::~Event(), and lspserver::LoggingSession::~LoggingSession().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
VersionedTextDocumentIdentifier & | R, | ||
llvm::json::Path | P ) |
Definition at line 110 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::VersionedTextDocumentIdentifier::version.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
WorkspaceEdit & | R, | ||
llvm::json::Path | P ) |
Definition at line 702 of file lspserver/src/Protocol.cpp.
References lspserver::WorkspaceEdit::changeAnnotations, lspserver::WorkspaceEdit::changes, lspserver::WorkspaceEdit::documentChanges, and fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
WorkspaceSymbolParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 752 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::WorkspaceSymbolParams::limit, and lspserver::WorkspaceSymbolParams::query.
bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
FileChangeType & | Out, | ||
llvm::json::Path | P ) |
Definition at line 545 of file lspserver/src/Protocol.cpp.
References Created, Deleted, and fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
TraceLevel & | Out, | ||
llvm::json::Path | P ) |
Definition at line 240 of file lspserver/src/Protocol.cpp.
References fromJSON(), Messages, Off, and Verbose.
bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
TypeHierarchyDirection & | Out, | ||
llvm::json::Path | P ) |
Definition at line 1228 of file lspserver/src/Protocol.cpp.
References Both, Children, and fromJSON().
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
ReferenceContext & | R, | ||
llvm::json::Path | P ) |
Definition at line 1301 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::ReferenceContext::includeDeclaration.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
SemanticTokensDeltaParams & | R, | ||
llvm::json::Path | P ) |
Definition at line 1171 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::SemanticTokensDeltaParams::previousResultId, and lspserver::SemanticTokensDeltaParams::textDocument.
bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
TypeHierarchyItem::ResolveParams & | RP, | ||
llvm::json::Path | P ) |
Definition at line 1260 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::fromJSON | ( | const TypeHierarchyItem::ResolveParams & | ) |
Definition at line 58 of file Logger.h.
References fromJSON(), lspserver::Logger::Info, and lspserver::detail::log().
Referenced by nixd::EvalClient::onReady().
size_t lspserver::lspLength | ( | llvm::StringRef | Code | ) |
Definition at line 50 of file SourceCode.cpp.
References fromJSON(), UnsupportedEncoding, UTF16, UTF32, and UTF8.
Referenced by applyChange(), and offsetToPosition().
std::string lspserver::maybeCaseFoldPath | ( | PathRef | Path | ) |
Turn an offset in Code into a [line, column] pair. The offset must be in range [0, Code.size()].
Definition at line 144 of file SourceCode.cpp.
References lspserver::Position::character, fromJSON(), lspserver::Position::line, and lspLength().
Referenced by nixd::toLSPPosition().
bool lspserver::operator< | ( | const CompletionItem & | L, |
const CompletionItem & | R ) |
Definition at line 1046 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::CompletionItem::label, and lspserver::CompletionItem::sortText.
Definition at line 1398 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
const ASTNode & | Root ) |
Definition at line 1522 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
const CompletionItem & | I ) |
Definition at line 1041 of file lspserver/src/Protocol.cpp.
References fromJSON(), and toJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
const Diagnostic & | D ) |
Definition at line 673 of file lspserver/src/Protocol.cpp.
References fromJSON(), lspserver::Diagnostic::message, lspserver::Diagnostic::range, and lspserver::Diagnostic::severity.
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
const DocumentHighlight & | V ) |
Definition at line 1184 of file lspserver/src/Protocol.cpp.
References fromJSON(), Read, and Write.
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
const Location & | L ) |
Definition at line 163 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
const Position & | P ) |
Definition at line 130 of file lspserver/src/Protocol.cpp.
References lspserver::Position::character, fromJSON(), and lspserver::Position::line.
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
const Range & | R ) |
Definition at line 146 of file lspserver/src/Protocol.cpp.
References lspserver::Range::end, fromJSON(), and lspserver::Range::start.
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
const ReferenceLocation & | L ) |
Definition at line 177 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
const SignatureInformation & | I ) |
Definition at line 1083 of file lspserver/src/Protocol.cpp.
References fromJSON(), and toJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
const SymbolInformation & | SI ) |
Definition at line 746 of file lspserver/src/Protocol.cpp.
References fromJSON(), and toJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
const TextEdit & | TE ) |
Definition at line 234 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
const TypeHierarchyItem & | I ) |
Definition at line 1249 of file lspserver/src/Protocol.cpp.
References fromJSON(), and toJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
InlayHintKind | Kind ) |
Definition at line 1403 of file lspserver/src/Protocol.cpp.
References Designator, fromJSON(), Parameter, and Type.
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
OffsetEncoding | Enc ) |
Definition at line 1444 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
const DocumentSymbol & | S ) |
Definition at line 785 of file lspserver/src/Protocol.cpp.
References fromJSON(), and toJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
const URIForFile & | U ) |
Definition at line 90 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
MarkupKind | K ) |
Definition at line 910 of file lspserver/src/Protocol.cpp.
References fromJSON().
Definition at line 1394 of file lspserver/src/Protocol.cpp.
References fromJSON().
bool lspserver::operator== | ( | const SemanticToken & | L, |
const SemanticToken & | R ) |
Definition at line 1137 of file lspserver/src/Protocol.cpp.
References lspserver::SemanticToken::deltaLine, lspserver::SemanticToken::deltaStart, fromJSON(), lspserver::SemanticToken::length, lspserver::SemanticToken::tokenModifiers, and lspserver::SemanticToken::tokenType.
Definition at line 238 of file lspserver/include/lspserver/Protocol.h.
References fromJSON(), lspserver::TextEdit::newText, and lspserver::TextEdit::range.
llvm::Expected< T > lspserver::parseParam | ( | const llvm::json::Value & | Raw, |
llvm::StringRef | PayloadName, | ||
llvm::StringRef | PayloadKind ) |
Definition at line 13 of file LSPBinder.h.
References elog(), fromJSON(), InvalidParams, and vlog().
|
inline |
Definition at line 37 of file LSPBinder.h.
bool lspserver::pathStartsWith | ( | PathRef | Ancestor, |
PathRef | Path, | ||
llvm::sys::path::Style | Style = llvm::sys::path::Style::native ) |
Checks if Ancestor
is a proper ancestor of Path
. This is just a smarter lexical prefix match, e.g: foo/bar/baz doesn't start with foo/./bar. Both Ancestor
and Path
must be absolute.
llvm::Expected< size_t > lspserver::positionToOffset | ( | llvm::StringRef | Code, |
Position | P, | ||
bool | AllowColumnsBeyondLineLength = true ) |
Turn a [line, column] pair into an offset in Code.
If P.character exceeds the line length, returns the offset at end-of-line. (If !AllowColumnsBeyondLineLength, then returns an error instead). If the line number is out of range, returns an error.
The returned value is in the range [0, Code.size()].
Definition at line 115 of file SourceCode.cpp.
References lspserver::Position::character, error(), fromJSON(), and lspserver::Position::line.
Referenced by applyChange().
bool lspserver::readLine | ( | int | fd, |
const std::atomic< bool > & | Close, | ||
llvm::SmallString< 128 > & | Line ) |
Definition at line 141 of file Connection.cpp.
References fromJSON().
Referenced by lspserver::InboundPort::readDelimitedMessage(), and lspserver::InboundPort::readStandardMessage().
llvm::json::Value lspserver::toJSON | ( | const ApplyWorkspaceEditParams & | Params | ) |
Definition at line 836 of file lspserver/src/Protocol.cpp.
References fromJSON().
Definition at line 1506 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const CallHierarchyIncomingCall & | C | ) |
Definition at line 1352 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const CallHierarchyItem & | I | ) |
Definition at line 1318 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const CallHierarchyOutgoingCall & | C | ) |
Definition at line 1362 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const ChangeAnnotation & | CA | ) |
Definition at line 214 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const CodeAction & | CA | ) |
Definition at line 770 of file lspserver/src/Protocol.cpp.
References lspserver::CodeAction::command, lspserver::CodeAction::edit, fromJSON(), lspserver::CodeAction::kind, and lspserver::CodeAction::title.
llvm::json::Value lspserver::toJSON | ( | const CodeDescription & | D | ) |
Definition at line 610 of file lspserver/src/Protocol.cpp.
References lspserver::CodeDescription::href.
Definition at line 759 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const CompletionItem & | CI | ) |
Definition at line 989 of file lspserver/src/Protocol.cpp.
References fromJSON(), and Missing.
llvm::json::Value lspserver::toJSON | ( | const CompletionList & | L | ) |
Definition at line 1051 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const ConfigurationItem & | N | ) |
Definition at line 1536 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const ConfigurationParams & | N | ) |
Definition at line 1545 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const Diagnostic & | D | ) |
Definition at line 614 of file lspserver/src/Protocol.cpp.
References lspserver::Diagnostic::category, lspserver::Diagnostic::code, lspserver::Diagnostic::codeActions, lspserver::Diagnostic::codeDescription, lspserver::Diagnostic::data, fromJSON(), lspserver::Diagnostic::message, lspserver::Diagnostic::range, lspserver::Diagnostic::relatedInformation, lspserver::Diagnostic::severity, lspserver::Diagnostic::source, and lspserver::Diagnostic::tags.
llvm::json::Value lspserver::toJSON | ( | const DiagnosticRelatedInformation & | DRI | ) |
Definition at line 601 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const DocumentHighlight & | DH | ) |
Definition at line 1108 of file lspserver/src/Protocol.cpp.
References fromJSON(), and toJSON().
llvm::json::Value lspserver::toJSON | ( | const DocumentLink & | DocumentLink | ) |
Definition at line 1469 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentLink::range, and lspserver::DocumentLink::target.
llvm::json::Value lspserver::toJSON | ( | const DocumentSymbol & | S | ) |
Definition at line 789 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const FileStatus & | FStatus | ) |
Definition at line 1115 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const FoldingRange & | Range | ) |
Definition at line 1486 of file lspserver/src/Protocol.cpp.
References fromJSON().
Definition at line 933 of file lspserver/src/Protocol.cpp.
References fromJSON(), and toJSON().
llvm::json::Value lspserver::toJSON | ( | const InactiveRegionsParams & | InactiveRegions | ) |
Definition at line 1178 of file lspserver/src/Protocol.cpp.
References lspserver::InactiveRegionsParams::InactiveRegions, and lspserver::InactiveRegionsParams::TextDocument.
Definition at line 1384 of file lspserver/src/Protocol.cpp.
References fromJSON(), and toJSON().
llvm::json::Value lspserver::toJSON | ( | const InlayHintKind & | Kind | ) |
Definition at line 1372 of file lspserver/src/Protocol.cpp.
References Designator, fromJSON(), Parameter, and Type.
Definition at line 150 of file lspserver/src/Protocol.cpp.
References lspserver::Location::range, and lspserver::Location::uri.
llvm::json::Value lspserver::toJSON | ( | const MarkupContent & | MC | ) |
Definition at line 914 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const MessageType & | R | ) |
Definition at line 510 of file lspserver/src/Protocol.cpp.
References fromJSON().
Definition at line 299 of file lspserver/include/lspserver/Protocol.h.
llvm::json::Value lspserver::toJSON | ( | const OffsetEncoding & | OE | ) |
Definition at line 1431 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const ParameterInformation & | PI | ) |
Definition at line 1058 of file lspserver/src/Protocol.cpp.
References fromJSON().
Definition at line 123 of file lspserver/src/Protocol.cpp.
References lspserver::Position::character, and lspserver::Position::line.
llvm::json::Value lspserver::toJSON | ( | const ProgressParams< T > & | P | ) |
Definition at line 632 of file lspserver/include/lspserver/Protocol.h.
References lspserver::ProgressParams< T >::token, and lspserver::ProgressParams< T >::value.
llvm::json::Value lspserver::toJSON | ( | const PublishDiagnosticsParams & | PDP | ) |
Definition at line 654 of file lspserver/src/Protocol.cpp.
References fromJSON().
Definition at line 139 of file lspserver/src/Protocol.cpp.
References lspserver::Range::end, and lspserver::Range::start.
llvm::json::Value lspserver::toJSON | ( | const ReferenceLocation & | P | ) |
Definition at line 167 of file lspserver/src/Protocol.cpp.
References lspserver::ReferenceLocation::containerName, fromJSON(), lspserver::Location::range, and lspserver::Location::uri.
llvm::json::Value lspserver::toJSON | ( | const SelectionRange & | Out | ) |
Definition at line 1455 of file lspserver/src/Protocol.cpp.
References lspserver::SelectionRange::parent, lspserver::SelectionRange::range, and toJSON().
llvm::json::Value lspserver::toJSON | ( | const SemanticTokens & | Tokens | ) |
Definition at line 1144 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const SemanticTokensEdit & | Edit | ) |
Definition at line 1149 of file lspserver/src/Protocol.cpp.
References fromJSON(), and SemanticTokenEncodingSize.
llvm::json::Value lspserver::toJSON | ( | const SemanticTokensOrDelta & | TE | ) |
Definition at line 1156 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const ShowMessageParams & | R | ) |
Definition at line 514 of file lspserver/src/Protocol.cpp.
References lspserver::ShowMessageParams::message, and lspserver::ShowMessageParams::type.
llvm::json::Value lspserver::toJSON | ( | const SignatureHelp & | SH | ) |
Definition at line 1089 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const SignatureInformation & | SI | ) |
Definition at line 1072 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const SymbolInformation & | P | ) |
Definition at line 734 of file lspserver/src/Protocol.cpp.
References lspserver::SymbolInformation::containerName, lspserver::SymbolInformation::kind, lspserver::SymbolInformation::location, lspserver::SymbolInformation::name, and lspserver::SymbolInformation::score.
llvm::json::Value lspserver::toJSON | ( | const TextDocumentEdit & | P | ) |
Definition at line 228 of file lspserver/src/Protocol.cpp.
References lspserver::TextDocumentEdit::edits, fromJSON(), and lspserver::TextDocumentEdit::textDocument.
llvm::json::Value lspserver::toJSON | ( | const TextDocumentIdentifier & | R | ) |
Definition at line 94 of file lspserver/src/Protocol.cpp.
References lspserver::TextDocumentIdentifier::uri.
Definition at line 197 of file lspserver/src/Protocol.cpp.
References lspserver::TextEdit::annotationId, fromJSON(), lspserver::TextEdit::newText, and lspserver::TextEdit::range.
Definition at line 831 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const TypeHierarchyItem & | I | ) |
Definition at line 1266 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const TypeHierarchyItem::ResolveParams & | RP | ) |
Definition at line 1254 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | const URIForFile & | U | ) |
Serialize/deserialize URIForFile
to/from a string URI.
Definition at line 88 of file lspserver/src/Protocol.cpp.
References fromJSON().
Referenced by operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), toJSON(), toJSON(), toJSON(), toJSON(), and toJSON().
llvm::json::Value lspserver::toJSON | ( | const VersionedTextDocumentIdentifier & | R | ) |
Definition at line 104 of file lspserver/src/Protocol.cpp.
References fromJSON(), toJSON(), and lspserver::VersionedTextDocumentIdentifier::version.
llvm::json::Value lspserver::toJSON | ( | const WorkDoneProgressBegin & | P | ) |
Definition at line 476 of file lspserver/src/Protocol.cpp.
References lspserver::WorkDoneProgressBegin::cancellable, fromJSON(), lspserver::WorkDoneProgressBegin::percentage, and lspserver::WorkDoneProgressBegin::title.
llvm::json::Value lspserver::toJSON | ( | const WorkDoneProgressCreateParams & | P | ) |
Definition at line 472 of file lspserver/src/Protocol.cpp.
References lspserver::WorkDoneProgressCreateParams::token.
llvm::json::Value lspserver::toJSON | ( | const WorkDoneProgressEnd & | P | ) |
Definition at line 502 of file lspserver/src/Protocol.cpp.
References fromJSON(), and lspserver::WorkDoneProgressEnd::message.
llvm::json::Value lspserver::toJSON | ( | const WorkDoneProgressReport & | P | ) |
Definition at line 490 of file lspserver/src/Protocol.cpp.
References lspserver::WorkDoneProgressReport::cancellable, fromJSON(), lspserver::WorkDoneProgressReport::message, and lspserver::WorkDoneProgressReport::percentage.
llvm::json::Value lspserver::toJSON | ( | const WorkspaceEdit & | WE | ) |
Definition at line 805 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | DiagnosticTag | Tag | ) |
Definition at line 608 of file lspserver/src/Protocol.cpp.
References fromJSON().
llvm::json::Value lspserver::toJSON | ( | SymbolTag | Tag | ) |
Definition at line 1314 of file lspserver/src/Protocol.cpp.
References fromJSON().
Definition at line 63 of file Logger.h.
References fromJSON(), lspserver::detail::log(), and lspserver::Logger::Verbose.
Referenced by lspserver::InboundPort::loop(), parseParam(), and lspserver::OutboundPort::sendMessage().
Definition at line 352 of file lspserver/include/lspserver/Protocol.h.
Definition at line 350 of file lspserver/include/lspserver/Protocol.h.
Referenced by adjustKindToCapability().
|
extern |
Definition at line 1122 of file lspserver/src/Protocol.cpp.
Referenced by toJSON().
|
constexpr |
Definition at line 392 of file lspserver/include/lspserver/Protocol.h.
|
constexpr |
Definition at line 391 of file lspserver/include/lspserver/Protocol.h.
Referenced by adjustKindToCapability().