|
nixd
|
Whether current platform treats paths case insensitively. More...
Namespaces | |
| namespace | detail |
Classes | |
| class | MessageHandler |
| class | InboundPort |
| class | OutboundPort |
| class | DraftStore |
| class | Event |
| An Event<T> allows events of type T to be broadcast to listeners. More... | |
| class | Logger |
| Interface to allow custom logging in clangd. More... | |
| class | LoggingSession |
| Only one LoggingSession can be active at a time. More... | |
| class | StreamLogger |
| struct | HandlerRegistry |
| class | LSPServer |
| class | LSPError |
| struct | URIForFile |
| struct | TextDocumentIdentifier |
| struct | VersionedTextDocumentIdentifier |
| struct | Position |
| struct | Range |
| struct | Location |
| struct | ReferenceLocation |
| struct | TextEdit |
| struct | ChangeAnnotation |
| struct | TextDocumentEdit |
| struct | CreateFileOptions |
| Options for CreateFile operation. More... | |
| struct | CreateFile |
| Create file operation. More... | |
| struct | RenameFileOptions |
| Options for RenameFile operation. More... | |
| struct | RenameFile |
| Rename file operation. More... | |
| struct | DeleteFileOptions |
| Options for DeleteFile operation. More... | |
| struct | DeleteFile |
| Delete file operation. More... | |
| struct | TextDocumentItem |
| struct | NoParams |
| struct | ClientCapabilities |
| struct | ClangdCompileCommand |
| struct | ConfigurationSettings |
| struct | InitializationOptions |
| struct | InitializeParams |
| struct | WorkDoneProgressCreateParams |
| struct | ProgressParams |
| struct | WorkDoneProgressBegin |
| struct | WorkDoneProgressReport |
| Reporting progress is done using the following payload. More... | |
| struct | WorkDoneProgressEnd |
| Signals the end of progress reporting. More... | |
| struct | ShowMessageParams |
| struct | DidOpenTextDocumentParams |
| struct | DidCloseTextDocumentParams |
| struct | DidSaveTextDocumentParams |
| struct | TextDocumentContentChangeEvent |
| struct | DidChangeTextDocumentParams |
| struct | FileEvent |
| struct | DidChangeWatchedFilesParams |
| struct | DidChangeConfigurationParams |
| struct | DocumentRangeFormattingParams |
| struct | DocumentOnTypeFormattingParams |
| struct | DocumentFormattingParams |
| struct | DocumentSymbolParams |
| struct | DiagnosticRelatedInformation |
| struct | CodeDescription |
| Structure to capture a description for an error code. More... | |
| struct | Diagnostic |
| struct | LSPDiagnosticCompare |
| struct | PublishDiagnosticsParams |
| struct | CodeActionContext |
| struct | CodeActionParams |
| struct | WorkspaceEdit |
| struct | TweakArgs |
| struct | ExecuteCommandParams |
| struct | Command |
| struct | CodeAction |
| struct | DocumentSymbol |
| struct | SymbolInformation |
| struct | WorkspaceSymbolParams |
| The parameters of a Workspace Symbol Request. More... | |
| struct | ApplyWorkspaceEditParams |
| struct | ApplyWorkspaceEditResponse |
| struct | ShowDocumentParams |
| struct | ShowDocumentResult |
| struct | TextDocumentPositionParams |
| struct | CompletionContext |
| struct | CompletionParams |
| struct | MarkupContent |
| struct | Hover |
| struct | CompletionItem |
| struct | CompletionList |
| Represents a collection of completion items to be presented in the editor. More... | |
| struct | ParameterInformation |
| A single parameter of a particular signature. More... | |
| struct | SignatureInformation |
| Represents the signature of something callable. More... | |
| struct | SignatureHelp |
| Represents the signature of a callable. More... | |
| struct | RenameParams |
| struct | DocumentHighlight |
| struct | TypeHierarchyPrepareParams |
| struct | TypeHierarchyItem |
| struct | ResolveTypeHierarchyItemParams |
| Parameters for the typeHierarchy/resolve request. More... | |
| struct | CallHierarchyPrepareParams |
| The parameter of a textDocument/prepareCallHierarchy request. More... | |
| struct | CallHierarchyItem |
| struct | CallHierarchyIncomingCallsParams |
| The parameter of a callHierarchy/incomingCalls request. More... | |
| struct | CallHierarchyIncomingCall |
| Represents an incoming call, e.g. a caller of a method or constructor. More... | |
| struct | CallHierarchyOutgoingCallsParams |
| The parameter of a callHierarchy/outgoingCalls request. More... | |
| struct | CallHierarchyOutgoingCall |
| struct | InlayHintsParams |
| A parameter literal used in inlay hint requests. More... | |
| struct | InlayHint |
| Inlay hint information. More... | |
| struct | ReferenceContext |
| struct | ReferenceParams |
| struct | FileStatus |
| struct | SemanticToken |
| struct | SemanticTokens |
| A versioned set of tokens. More... | |
| struct | SemanticTokensParams |
| Body of textDocument/semanticTokens/full request. More... | |
| struct | SemanticTokensDeltaParams |
| struct | SemanticTokensEdit |
| Describes a replacement of a contiguous range of semanticTokens. More... | |
| struct | SemanticTokensOrDelta |
| struct | InactiveRegionsParams |
| struct | SelectionRangeParams |
| struct | SelectionRange |
| struct | DocumentLinkParams |
| Parameters for the document link request. More... | |
| struct | DocumentLink |
| struct | FoldingRangeParams |
| struct | FoldingRange |
| Stores information about a region of code that can be folded. More... | |
| struct | ASTParams |
| struct | ASTNode |
| struct | ConfigurationItem |
| struct | ConfigurationParams |
| class | Key |
| class | URI |
| class | URIScheme |
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 | DocumentChange |
| 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 &) |
| llvm::json::Value | toJSON (const CreateFileOptions &) |
| llvm::json::Value | toJSON (const CreateFile &) |
| llvm::json::Value | toJSON (const RenameFileOptions &) |
| llvm::json::Value | toJSON (const RenameFile &) |
| llvm::json::Value | toJSON (const DeleteFileOptions &) |
| llvm::json::Value | toJSON (const DeleteFile &) |
| llvm::json::Value | toJSON (const DocumentChange &) |
| bool | fromJSON (const llvm::json::Value &, DocumentChange &, llvm::json::Path) |
| 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 &) |
| bool | fromJSON (const llvm::json::Value &, CodeAction &, llvm::json::Path) |
| 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) |
| llvm::json::Value | toJSON (const ShowDocumentParams &) |
| bool | fromJSON (const llvm::json::Value &, ShowDocumentResult &, 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) |
Variables | |
| constexpr auto | CompletionItemKindMin |
| constexpr auto | CompletionItemKindMax |
| constexpr auto | SymbolKindMin = static_cast<size_t>(SymbolKind::File) |
| constexpr auto | SymbolKindMax = static_cast<size_t>(SymbolKind::TypeParameter) |
| Key< OffsetEncoding > | kCurrentOffsetEncoding |
| constexpr unsigned | SemanticTokenEncodingSize = 5 |
Whether current platform treats paths case insensitively.
| using lspserver::Callback = llvm::unique_function<void(llvm::Expected<T>)> |
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 224 of file lspserver/include/lspserver/Protocol.h.
| using lspserver::CompletionItemKindBitset = std::bitset<CompletionItemKindMax + 1> |
Definition at line 429 of file lspserver/include/lspserver/Protocol.h.
A document change is either a TextDocumentEdit or a resource operation (CreateFile, RenameFile, DeleteFile). The discriminator is the presence of a "kind" field for resource operations.
Definition at line 343 of file lspserver/include/lspserver/Protocol.h.
| using lspserver::InitializedParams = NoParams |
Definition at line 378 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 468 of file lspserver/include/lspserver/Protocol.h.
| typedef llvm::Registry<URIScheme> lspserver::URISchemeRegistry |
|
strong |
The kind of a completion entry.
Definition at line 395 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Definition at line 1289 of file lspserver/include/lspserver/Protocol.h.
Definition at line 945 of file lspserver/include/lspserver/Protocol.h.
|
strong |
| Enumerator | |
|---|---|
| Text | |
| Read | |
| Write | |
Definition at line 1499 of file lspserver/include/lspserver/Protocol.h.
|
strong |
| Enumerator | |
|---|---|
| ParseError | |
| InvalidRequest | |
| MethodNotFound | |
| InvalidParams | |
| InternalError | |
| ServerNotInitialized | |
| UnknownErrorCode | |
| RequestCancelled | |
| ContentModified | |
Definition at line 23 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 857 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Inlay hint kinds.
Definition at line 1702 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 $1, $2 and ${3:foo}. $0 defines the final tab stop, it defaults to the end of the snippet. Placeholders with equal identifiers are linked, that is typing in one will update others too. See also: https://github.com/Microsoft/vscode/blob/main/src/vs/editor/contrib/snippet/snippet.md |
Definition at line 1337 of file lspserver/include/lspserver/Protocol.h.
|
strong |
| Enumerator | |
|---|---|
| Standard | |
| LitTest | |
Definition at line 13 of file Connection.h.
|
strong |
| Enumerator | |
|---|---|
| PlainText | |
| Markdown | |
Definition at line 490 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 777 of file lspserver/include/lspserver/Protocol.h.
|
strong |
| Enumerator | |
|---|---|
| UnsupportedEncoding | |
| UTF16 | |
| UTF8 | |
| UTF32 | |
Definition at line 474 of file lspserver/include/lspserver/Protocol.h.
|
strong |
A symbol kind.
Definition at line 437 of file lspserver/include/lspserver/Protocol.h.
|
strong |
| Enumerator | |
|---|---|
| Deprecated | |
Definition at line 1611 of file lspserver/include/lspserver/Protocol.h.
|
strong |
Defines how the host (editor) should sync document changes to the language server.
Definition at line 382 of file lspserver/include/lspserver/Protocol.h.
|
strong |
| Enumerator | |
|---|---|
| Off | |
| Messages | |
| Verbose | |
Definition at line 366 of file lspserver/include/lspserver/Protocol.h.
|
strong |
| Enumerator | |
|---|---|
| Children | |
| Parents | |
| Both | |
Definition at line 1527 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 1147 of file lspserver/src/Protocol.cpp.
References Class, CompletionItemKindMin, Enum, EnumMember, File, Folder, Struct, and Text.
| SymbolKind lspserver::adjustKindToCapability | ( | SymbolKind | Kind, |
| SymbolKindBitset & | supportedSymbolKinds ) |
Definition at line 430 of file lspserver/src/Protocol.cpp.
References Class, Enum, EnumMember, 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 191 of file SourceCode.cpp.
References error(), lspLength(), positionToOffset(), lspserver::TextDocumentContentChangeEvent::range, lspserver::TextDocumentContentChangeEvent::rangeLength, and lspserver::TextDocumentContentChangeEvent::text.
| 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 71 of file Connection.cpp.
Referenced by lspserver::InboundPort::dispatch().
| void lspserver::elog | ( | const char * | Fmt, |
| Ts &&... | Vals ) |
Definition at line 52 of file Logger.h.
References lspserver::Logger::Error, and lspserver::detail::log().
Referenced by lspserver::URIForFile::canonicalize(), lspserver::DraftStore::decodeVersion(), lspserver::InboundPort::dispatch(), lspserver::InboundPort::loop(), parseParam(), lspserver::InboundPort::readStandardMessage(), and nixd::resolveExprPath().
| llvm::Error lspserver::error | ( | const char * | Fmt, |
| Ts &&... | Vals ) |
Definition at line 76 of file Logger.h.
References lspserver::detail::error(), 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(), 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().
|
inline |
Definition at line 86 of file Logger.h.
References lspserver::detail::error().
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Response, |
| ApplyWorkspaceEditResponse & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1010 of file lspserver/src/Protocol.cpp.
References lspserver::ApplyWorkspaceEditResponse::applied, and lspserver::ApplyWorkspaceEditResponse::failureReason.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| ASTParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1692 of file lspserver/src/Protocol.cpp.
References lspserver::ASTParams::range, and lspserver::ASTParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| CallHierarchyIncomingCallsParams & | C, | ||
| llvm::json::Path | P ) |
Definition at line 1538 of file lspserver/src/Protocol.cpp.
References lspserver::CallHierarchyIncomingCallsParams::item.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| CallHierarchyItem & | I, | ||
| llvm::json::Path | P ) |
Definition at line 1525 of file lspserver/src/Protocol.cpp.
References lspserver::CallHierarchyItem::data, lspserver::CallHierarchyItem::kind, lspserver::CallHierarchyItem::name, lspserver::CallHierarchyItem::range, lspserver::CallHierarchyItem::selectionRange, and lspserver::CallHierarchyItem::uri.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| CallHierarchyOutgoingCallsParams & | C, | ||
| llvm::json::Path | P ) |
Definition at line 1548 of file lspserver/src/Protocol.cpp.
References lspserver::CallHierarchyOutgoingCallsParams::item.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| ChangeAnnotation & | R, | ||
| llvm::json::Path | P ) |
Definition at line 208 of file lspserver/src/Protocol.cpp.
References lspserver::ChangeAnnotation::description, lspserver::ChangeAnnotation::label, and lspserver::ChangeAnnotation::needsConfirmation.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| ClangdCompileCommand & | CDbUpdate, | ||
| llvm::json::Path | P ) |
Definition at line 1392 of file lspserver/src/Protocol.cpp.
References lspserver::ClangdCompileCommand::compilationCommand, and lspserver::ClangdCompileCommand::workingDirectory.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| ClientCapabilities & | R, | ||
| llvm::json::Path | P ) |
Definition at line 448 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, |
| CodeAction & | CA, | ||
| llvm::json::Path | P ) |
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| CodeActionContext & | R, | ||
| llvm::json::Path | P ) |
Definition at line 812 of file lspserver/src/Protocol.cpp.
References lspserver::CodeActionContext::diagnostics, and lspserver::CodeActionContext::only.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| CodeActionParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 843 of file lspserver/src/Protocol.cpp.
References lspserver::CodeActionParams::context, lspserver::CodeActionParams::range, and lspserver::CodeActionParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| CompletionContext & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1046 of file lspserver/src/Protocol.cpp.
References lspserver::CompletionContext::triggerCharacter, and lspserver::CompletionContext::triggerKind.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| CompletionItem & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1209 of file lspserver/src/Protocol.cpp.
References lspserver::CompletionItem::additionalTextEdits, lspserver::CompletionItem::data, lspserver::CompletionItem::detail, lspserver::CompletionItem::documentation, lspserver::CompletionItem::filterText, 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 1134 of file lspserver/src/Protocol.cpp.
References Text, and TypeParameter.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
| CompletionItemKindBitset & | Out, | ||
| llvm::json::Path | P ) |
Definition at line 1168 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 1057 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 1399 of file lspserver/src/Protocol.cpp.
References lspserver::ConfigurationSettings::compilationDatabaseChanges.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| Diagnostic & | R, | ||
| llvm::json::Path | P ) |
Definition at line 788 of file lspserver/src/Protocol.cpp.
References lspserver::Diagnostic::category, lspserver::Diagnostic::code, lspserver::Diagnostic::data, 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 1386 of file lspserver/src/Protocol.cpp.
References lspserver::DidChangeConfigurationParams::settings.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DidChangeTextDocumentParams & | R, | ||
| llvm::json::Path | P ) |
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DidChangeWatchedFilesParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 711 of file lspserver/src/Protocol.cpp.
References lspserver::DidChangeWatchedFilesParams::changes.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DidCloseTextDocumentParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 672 of file lspserver/src/Protocol.cpp.
References lspserver::DidCloseTextDocumentParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DidOpenTextDocumentParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 666 of file lspserver/src/Protocol.cpp.
References lspserver::DidOpenTextDocumentParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DidSaveTextDocumentParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 678 of file lspserver/src/Protocol.cpp.
References lspserver::DidSaveTextDocumentParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DocumentChange & | DC, | ||
| llvm::json::Path | P ) |
Definition at line 309 of file lspserver/src/Protocol.cpp.
References lspserver::CreateFile::annotationId, lspserver::DeleteFile::annotationId, lspserver::RenameFile::annotationId, fromJSON(), lspserver::RenameFile::newUri, lspserver::RenameFile::oldUri, lspserver::CreateFile::options, lspserver::DeleteFile::options, lspserver::RenameFile::options, lspserver::CreateFile::uri, and lspserver::DeleteFile::uri.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DocumentFormattingParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 737 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentFormattingParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DocumentLinkParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1655 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentLinkParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DocumentOnTypeFormattingParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 730 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentOnTypeFormattingParams::ch, lspserver::DocumentOnTypeFormattingParams::position, and lspserver::DocumentOnTypeFormattingParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DocumentRangeFormattingParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 724 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentRangeFormattingParams::range, and lspserver::DocumentRangeFormattingParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| DocumentSymbolParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 743 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentSymbolParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| ExecuteCommandParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 858 of file lspserver/src/Protocol.cpp.
References lspserver::ExecuteCommandParams::argument, and lspserver::ExecuteCommandParams::command.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| FileEvent & | R, | ||
| llvm::json::Path | P ) |
Definition at line 705 of file lspserver/src/Protocol.cpp.
References lspserver::FileEvent::type, and lspserver::FileEvent::uri.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| FoldingRangeParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1668 of file lspserver/src/Protocol.cpp.
References lspserver::FoldingRangeParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| InitializationOptions & | Opts, | ||
| llvm::json::Path | P ) |
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| InitializeParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 602 of file lspserver/src/Protocol.cpp.
References lspserver::InitializeParams::capabilities, 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 1558 of file lspserver/src/Protocol.cpp.
References lspserver::InlayHintsParams::range, and lspserver::InlayHintsParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| Location & | R, | ||
| llvm::json::Path | P ) |
Definition at line 158 of file lspserver/src/Protocol.cpp.
References lspserver::Location::range, and lspserver::Location::uri.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| MarkupContent & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1116 of file lspserver/src/Protocol.cpp.
References lspserver::MarkupContent::kind, and lspserver::MarkupContent::value.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | V, |
| MarkupKind & | K, | ||
| llvm::json::Path | P ) |
Definition at line 1085 of file lspserver/src/Protocol.cpp.
|
inline |
Definition at line 375 of file lspserver/include/lspserver/Protocol.h.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | V, |
| OffsetEncoding & | OE, | ||
| llvm::json::Path | P ) |
Definition at line 1624 of file lspserver/src/Protocol.cpp.
References UnsupportedEncoding, UTF16, UTF32, and UTF8.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| Position & | R, | ||
| llvm::json::Path | P ) |
Definition at line 118 of file lspserver/src/Protocol.cpp.
References lspserver::Position::character, and lspserver::Position::line.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| Range & | R, | ||
| llvm::json::Path | P ) |
Definition at line 135 of file lspserver/src/Protocol.cpp.
References lspserver::Range::end, and lspserver::Range::start.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| ReferenceParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1499 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 1293 of file lspserver/src/Protocol.cpp.
References 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 1485 of file lspserver/src/Protocol.cpp.
References lspserver::ResolveTypeHierarchyItemParams::direction, lspserver::ResolveTypeHierarchyItemParams::item, and lspserver::ResolveTypeHierarchyItemParams::resolve.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| SelectionRangeParams & | S, | ||
| llvm::json::Path | P ) |
Definition at line 1640 of file lspserver/src/Protocol.cpp.
References lspserver::SelectionRangeParams::positions, and lspserver::SelectionRangeParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| SemanticTokensParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1357 of file lspserver/src/Protocol.cpp.
References lspserver::SemanticTokensParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Response, |
| ShowDocumentResult & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1033 of file lspserver/src/Protocol.cpp.
References lspserver::ShowDocumentResult::success.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
| SymbolKind & | Out, | ||
| llvm::json::Path | P ) |
Definition at line 406 of file lspserver/src/Protocol.cpp.
References File, and TypeParameter.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
| SymbolKindBitset & | Out, | ||
| llvm::json::Path | P ) |
Definition at line 417 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 717 of file lspserver/src/Protocol.cpp.
References 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 224 of file lspserver/src/Protocol.cpp.
References lspserver::TextDocumentEdit::edits, and lspserver::TextDocumentEdit::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| TextDocumentIdentifier & | R, | ||
| llvm::json::Path | P ) |
Definition at line 99 of file lspserver/src/Protocol.cpp.
References lspserver::TextDocumentIdentifier::uri.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| TextDocumentItem & | R, | ||
| llvm::json::Path | P ) |
Definition at line 184 of file lspserver/src/Protocol.cpp.
References 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 1039 of file lspserver/src/Protocol.cpp.
References lspserver::TextDocumentPositionParams::position, and lspserver::TextDocumentPositionParams::textDocument.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| TextEdit & | R, | ||
| llvm::json::Path | P ) |
Definition at line 191 of file lspserver/src/Protocol.cpp.
References lspserver::TextEdit::annotationId, lspserver::TextEdit::newText, and lspserver::TextEdit::range.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| TweakArgs & | A, | ||
| llvm::json::Path | P ) |
Definition at line 994 of file lspserver/src/Protocol.cpp.
References lspserver::TweakArgs::file, lspserver::TweakArgs::selection, and lspserver::TweakArgs::tweakID.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| TypeHierarchyItem & | I, | ||
| llvm::json::Path | P ) |
Definition at line 1470 of file lspserver/src/Protocol.cpp.
References lspserver::TypeHierarchyItem::children, lspserver::TypeHierarchyItem::data, lspserver::TypeHierarchyItem::deprecated, lspserver::TypeHierarchyItem::detail, lspserver::TypeHierarchyItem::kind, lspserver::TypeHierarchyItem::name, lspserver::TypeHierarchyItem::parents, lspserver::TypeHierarchyItem::range, lspserver::TypeHierarchyItem::selectionRange, and lspserver::TypeHierarchyItem::uri.
| 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 64 of file lspserver/src/Protocol.cpp.
References lspserver::URIForFile::fromURI(), and lspserver::URI::parse().
Referenced by fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), fromJSON(), and parseParam().
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| VersionedTextDocumentIdentifier & | R, | ||
| llvm::json::Path | P ) |
Definition at line 111 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 850 of file lspserver/src/Protocol.cpp.
References lspserver::WorkspaceEdit::changeAnnotations, lspserver::WorkspaceEdit::changes, and lspserver::WorkspaceEdit::documentChanges.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| WorkspaceSymbolParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 900 of file lspserver/src/Protocol.cpp.
References lspserver::WorkspaceSymbolParams::limit, and lspserver::WorkspaceSymbolParams::query.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
| FileChangeType & | Out, | ||
| llvm::json::Path | P ) |
Definition at line 693 of file lspserver/src/Protocol.cpp.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
| TraceLevel & | Out, | ||
| llvm::json::Path | P ) |
Definition at line 388 of file lspserver/src/Protocol.cpp.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | E, |
| TypeHierarchyDirection & | Out, | ||
| llvm::json::Path | P ) |
Definition at line 1420 of file lspserver/src/Protocol.cpp.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| ReferenceContext & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1493 of file lspserver/src/Protocol.cpp.
References lspserver::ReferenceContext::includeDeclaration.
| bool lspserver::fromJSON | ( | const llvm::json::Value & | Params, |
| SemanticTokensDeltaParams & | R, | ||
| llvm::json::Path | P ) |
Definition at line 1363 of file lspserver/src/Protocol.cpp.
References 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 1452 of file lspserver/src/Protocol.cpp.
References lspserver::TypeHierarchyItem::ResolveParams::parents.
| bool lspserver::fromJSON | ( | const TypeHierarchyItem::ResolveParams & | ) |
| void lspserver::log | ( | const char * | Fmt, |
| Ts &&... | Vals ) |
Definition at line 58 of file Logger.h.
References lspserver::Logger::Info, and lspserver::detail::log().
Referenced by lspserver::LSPServer::mkOutNotifiction(), and nixd::EvalClient::onReady().
| size_t lspserver::lspLength | ( | llvm::StringRef | Code | ) |
Definition at line 51 of file SourceCode.cpp.
References UnsupportedEncoding, UTF16, UTF32, and UTF8.
Referenced by applyChange(), and offsetToPosition().
| std::string lspserver::maybeCaseFoldPath | ( | PathRef | Path | ) |
| Position lspserver::offsetToPosition | ( | llvm::StringRef | Code, |
| size_t | Offset ) |
Turn an offset in Code into a [line, column] pair. The offset must be in range [0, Code.size()].
Definition at line 145 of file SourceCode.cpp.
References lspserver::Position::character, lspserver::Position::line, and lspLength().
Referenced by nixd::toLSPPosition().
| bool lspserver::operator< | ( | const CompletionItem & | L, |
| const CompletionItem & | R ) |
Definition at line 1238 of file lspserver/src/Protocol.cpp.
References lspserver::CompletionItem::label, and lspserver::CompletionItem::sortText.
Definition at line 1590 of file lspserver/src/Protocol.cpp.
References lspserver::InlayHint::kind, lspserver::InlayHint::label, lspserver::InlayHint::position, and lspserver::InlayHint::range.
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| const ASTNode & | Root ) |
Definition at line 1714 of file lspserver/src/Protocol.cpp.
References lspserver::ASTNode::children, lspserver::ASTNode::detail, lspserver::ASTNode::kind, and lspserver::ASTNode::role.
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
| const CompletionItem & | I ) |
Definition at line 1233 of file lspserver/src/Protocol.cpp.
References lspserver::CompletionItem::label, and toJSON().
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| const Diagnostic & | D ) |
Definition at line 821 of file lspserver/src/Protocol.cpp.
References 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 1376 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentHighlight::kind, lspserver::DocumentHighlight::range, Read, and Write.
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| const Location & | L ) |
Definition at line 164 of file lspserver/src/Protocol.cpp.
References lspserver::Location::range, and lspserver::Location::uri.
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| const Position & | P ) |
Definition at line 131 of file lspserver/src/Protocol.cpp.
References lspserver::Position::character, and lspserver::Position::line.
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| const Range & | R ) |
Definition at line 147 of file lspserver/src/Protocol.cpp.
References lspserver::Range::end, and lspserver::Range::start.
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| const ReferenceLocation & | L ) |
Definition at line 178 of file lspserver/src/Protocol.cpp.
References lspserver::ReferenceLocation::containerName, lspserver::Location::range, and lspserver::Location::uri.
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
| const SignatureInformation & | I ) |
Definition at line 1275 of file lspserver/src/Protocol.cpp.
References lspserver::SignatureInformation::label, and toJSON().
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
| const SymbolInformation & | SI ) |
Definition at line 894 of file lspserver/src/Protocol.cpp.
References lspserver::SymbolInformation::containerName, lspserver::SymbolInformation::name, and toJSON().
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| const TextEdit & | TE ) |
Definition at line 382 of file lspserver/src/Protocol.cpp.
References lspserver::TextEdit::newText, and lspserver::TextEdit::range.
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
| const TypeHierarchyItem & | I ) |
Definition at line 1441 of file lspserver/src/Protocol.cpp.
References lspserver::TypeHierarchyItem::name, and toJSON().
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| InlayHintKind | Kind ) |
Definition at line 1595 of file lspserver/src/Protocol.cpp.
References Designator, Parameter, and Type.
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| OffsetEncoding | Enc ) |
Definition at line 1636 of file lspserver/src/Protocol.cpp.
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | O, |
| const DocumentSymbol & | S ) |
Definition at line 955 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentSymbol::name, and toJSON().
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| const URIForFile & | U ) |
Definition at line 91 of file lspserver/src/Protocol.cpp.
References lspserver::URIForFile::uri().
| llvm::raw_ostream & lspserver::operator<< | ( | llvm::raw_ostream & | OS, |
| MarkupKind | K ) |
Definition at line 1102 of file lspserver/src/Protocol.cpp.
Definition at line 1586 of file lspserver/src/Protocol.cpp.
References lspserver::InlayHint::kind, lspserver::InlayHint::label, lspserver::InlayHint::position, and lspserver::InlayHint::range.
| bool lspserver::operator== | ( | const SemanticToken & | L, |
| const SemanticToken & | R ) |
Definition at line 1329 of file lspserver/src/Protocol.cpp.
References lspserver::SemanticToken::deltaLine, lspserver::SemanticToken::deltaStart, lspserver::SemanticToken::length, lspserver::SemanticToken::tokenModifiers, and lspserver::SemanticToken::tokenType.
Definition at line 239 of file lspserver/include/lspserver/Protocol.h.
References lspserver::TextEdit::annotationId, lspserver::TextEdit::newText, and lspserver::TextEdit::range.
|
inline |
Definition at line 37 of file LSPBinder.h.
| 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().
Referenced by lspserver::HandlerRegistry::addCommand(), lspserver::HandlerRegistry::addMethod(), lspserver::HandlerRegistry::addNotification(), and lspserver::LSPServer::mkOutMethod().
| 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 116 of file SourceCode.cpp.
References lspserver::Position::character, error(), and lspserver::Position::line.
Referenced by nixd::addJsonToNixAction(), and applyChange().
| bool lspserver::readLine | ( | int | fd, |
| const std::atomic< bool > & | Close, | ||
| llvm::SmallString< 128 > & | Line ) |
Definition at line 163 of file Connection.cpp.
Referenced by lspserver::InboundPort::readLitTestMessage(), and lspserver::InboundPort::readStandardMessage().
| llvm::json::Value lspserver::toJSON | ( | const ApplyWorkspaceEditParams & | Params | ) |
Definition at line 1006 of file lspserver/src/Protocol.cpp.
References lspserver::ApplyWorkspaceEditParams::edit.
| llvm::json::Value lspserver::toJSON | ( | const ASTNode & | N | ) |
Definition at line 1698 of file lspserver/src/Protocol.cpp.
References lspserver::ASTNode::arcana, lspserver::ASTNode::children, lspserver::ASTNode::detail, lspserver::ASTNode::kind, lspserver::ASTNode::range, and lspserver::ASTNode::role.
| llvm::json::Value lspserver::toJSON | ( | const CallHierarchyIncomingCall & | C | ) |
Definition at line 1544 of file lspserver/src/Protocol.cpp.
References lspserver::CallHierarchyIncomingCall::from, and lspserver::CallHierarchyIncomingCall::fromRanges.
| llvm::json::Value lspserver::toJSON | ( | const CallHierarchyItem & | I | ) |
Definition at line 1510 of file lspserver/src/Protocol.cpp.
References lspserver::CallHierarchyItem::data, lspserver::CallHierarchyItem::detail, lspserver::CallHierarchyItem::kind, lspserver::CallHierarchyItem::name, lspserver::CallHierarchyItem::range, lspserver::CallHierarchyItem::selectionRange, lspserver::CallHierarchyItem::tags, and lspserver::CallHierarchyItem::uri.
| llvm::json::Value lspserver::toJSON | ( | const CallHierarchyOutgoingCall & | C | ) |
Definition at line 1554 of file lspserver/src/Protocol.cpp.
References lspserver::CallHierarchyOutgoingCall::fromRanges, and lspserver::CallHierarchyOutgoingCall::to.
| llvm::json::Value lspserver::toJSON | ( | const ChangeAnnotation & | CA | ) |
Definition at line 215 of file lspserver/src/Protocol.cpp.
References lspserver::ChangeAnnotation::description, lspserver::ChangeAnnotation::label, and lspserver::ChangeAnnotation::needsConfirmation.
| llvm::json::Value lspserver::toJSON | ( | const CodeAction & | CA | ) |
| llvm::json::Value lspserver::toJSON | ( | const CodeDescription & | D | ) |
Definition at line 758 of file lspserver/src/Protocol.cpp.
References lspserver::CodeDescription::href.
| llvm::json::Value lspserver::toJSON | ( | const Command & | C | ) |
Definition at line 907 of file lspserver/src/Protocol.cpp.
References lspserver::ExecuteCommandParams::argument, lspserver::ExecuteCommandParams::command, and lspserver::Command::title.
| llvm::json::Value lspserver::toJSON | ( | const CompletionItem & | CI | ) |
Definition at line 1181 of file lspserver/src/Protocol.cpp.
References lspserver::CompletionItem::additionalTextEdits, lspserver::CompletionItem::data, lspserver::CompletionItem::deprecated, lspserver::CompletionItem::detail, lspserver::CompletionItem::documentation, lspserver::CompletionItem::filterText, lspserver::CompletionItem::insertText, lspserver::CompletionItem::insertTextFormat, lspserver::CompletionItem::kind, lspserver::CompletionItem::label, Missing, lspserver::CompletionItem::score, lspserver::CompletionItem::sortText, and lspserver::CompletionItem::textEdit.
| llvm::json::Value lspserver::toJSON | ( | const CompletionList & | L | ) |
Definition at line 1243 of file lspserver/src/Protocol.cpp.
References lspserver::CompletionList::isIncomplete, and lspserver::CompletionList::items.
| llvm::json::Value lspserver::toJSON | ( | const ConfigurationItem & | N | ) |
Definition at line 1728 of file lspserver/src/Protocol.cpp.
References lspserver::ConfigurationItem::scopeUri, and lspserver::ConfigurationItem::section.
| llvm::json::Value lspserver::toJSON | ( | const ConfigurationParams & | N | ) |
Definition at line 1737 of file lspserver/src/Protocol.cpp.
References lspserver::ConfigurationParams::items.
| llvm::json::Value lspserver::toJSON | ( | const CreateFile & | P | ) |
Definition at line 248 of file lspserver/src/Protocol.cpp.
References lspserver::CreateFile::annotationId, lspserver::CreateFile::options, and lspserver::CreateFile::uri.
| llvm::json::Value lspserver::toJSON | ( | const CreateFileOptions & | P | ) |
Definition at line 239 of file lspserver/src/Protocol.cpp.
References lspserver::CreateFileOptions::ignoreIfExists, and lspserver::CreateFileOptions::overwrite.
| llvm::json::Value lspserver::toJSON | ( | const DeleteFile & | P | ) |
Definition at line 291 of file lspserver/src/Protocol.cpp.
References lspserver::DeleteFile::annotationId, lspserver::DeleteFile::options, and lspserver::DeleteFile::uri.
| llvm::json::Value lspserver::toJSON | ( | const DeleteFileOptions & | P | ) |
Definition at line 282 of file lspserver/src/Protocol.cpp.
References lspserver::DeleteFileOptions::ignoreIfNotExists, and lspserver::DeleteFileOptions::recursive.
| llvm::json::Value lspserver::toJSON | ( | const Diagnostic & | D | ) |
Definition at line 762 of file lspserver/src/Protocol.cpp.
References lspserver::Diagnostic::category, lspserver::Diagnostic::code, lspserver::Diagnostic::codeActions, lspserver::Diagnostic::codeDescription, lspserver::Diagnostic::data, 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 749 of file lspserver/src/Protocol.cpp.
References lspserver::DiagnosticRelatedInformation::location, and lspserver::DiagnosticRelatedInformation::message.
| llvm::json::Value lspserver::toJSON | ( | const DocumentChange & | DC | ) |
Definition at line 303 of file lspserver/src/Protocol.cpp.
References toJSON().
| llvm::json::Value lspserver::toJSON | ( | const DocumentHighlight & | DH | ) |
Definition at line 1300 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentHighlight::kind, lspserver::DocumentHighlight::range, and toJSON().
| llvm::json::Value lspserver::toJSON | ( | const DocumentLink & | DocumentLink | ) |
Definition at line 1661 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 959 of file lspserver/src/Protocol.cpp.
References lspserver::DocumentSymbol::children, lspserver::DocumentSymbol::deprecated, lspserver::DocumentSymbol::detail, lspserver::DocumentSymbol::kind, lspserver::DocumentSymbol::name, lspserver::DocumentSymbol::range, and lspserver::DocumentSymbol::selectionRange.
| llvm::json::Value lspserver::toJSON | ( | const FileStatus & | FStatus | ) |
Definition at line 1307 of file lspserver/src/Protocol.cpp.
References lspserver::FileStatus::state, and lspserver::FileStatus::uri.
| llvm::json::Value lspserver::toJSON | ( | const FoldingRange & | Range | ) |
Definition at line 1678 of file lspserver/src/Protocol.cpp.
| llvm::json::Value lspserver::toJSON | ( | const Hover & | H | ) |
Definition at line 1125 of file lspserver/src/Protocol.cpp.
References lspserver::Hover::contents, lspserver::Hover::range, and toJSON().
| llvm::json::Value lspserver::toJSON | ( | const InactiveRegionsParams & | InactiveRegions | ) |
Definition at line 1370 of file lspserver/src/Protocol.cpp.
References lspserver::InactiveRegionsParams::InactiveRegions, and lspserver::InactiveRegionsParams::TextDocument.
| llvm::json::Value lspserver::toJSON | ( | const InlayHint & | H | ) |
Definition at line 1576 of file lspserver/src/Protocol.cpp.
References lspserver::InlayHint::kind, lspserver::InlayHint::label, lspserver::InlayHint::paddingLeft, lspserver::InlayHint::paddingRight, lspserver::InlayHint::position, and toJSON().
| llvm::json::Value lspserver::toJSON | ( | const InlayHintKind & | Kind | ) |
Definition at line 1564 of file lspserver/src/Protocol.cpp.
References Designator, Parameter, and Type.
| llvm::json::Value lspserver::toJSON | ( | const Location & | P | ) |
Definition at line 151 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 1106 of file lspserver/src/Protocol.cpp.
References lspserver::MarkupContent::kind, and lspserver::MarkupContent::value.
| llvm::json::Value lspserver::toJSON | ( | const MessageType & | R | ) |
Definition at line 658 of file lspserver/src/Protocol.cpp.
|
inline |
Definition at line 374 of file lspserver/include/lspserver/Protocol.h.
| llvm::json::Value lspserver::toJSON | ( | const OffsetEncoding & | OE | ) |
Definition at line 1623 of file lspserver/src/Protocol.cpp.
| llvm::json::Value lspserver::toJSON | ( | const ParameterInformation & | PI | ) |
Definition at line 1250 of file lspserver/src/Protocol.cpp.
References lspserver::ParameterInformation::documentation, lspserver::ParameterInformation::labelOffsets, and lspserver::ParameterInformation::labelString.
| llvm::json::Value lspserver::toJSON | ( | const Position & | P | ) |
Definition at line 124 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 707 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 802 of file lspserver/src/Protocol.cpp.
References lspserver::PublishDiagnosticsParams::diagnostics, lspserver::PublishDiagnosticsParams::uri, and lspserver::PublishDiagnosticsParams::version.
| llvm::json::Value lspserver::toJSON | ( | const Range & | P | ) |
Definition at line 140 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 168 of file lspserver/src/Protocol.cpp.
References lspserver::ReferenceLocation::containerName, lspserver::Location::range, and lspserver::Location::uri.
| llvm::json::Value lspserver::toJSON | ( | const RenameFile & | P | ) |
Definition at line 269 of file lspserver/src/Protocol.cpp.
References lspserver::RenameFile::annotationId, lspserver::RenameFile::newUri, lspserver::RenameFile::oldUri, and lspserver::RenameFile::options.
| llvm::json::Value lspserver::toJSON | ( | const RenameFileOptions & | P | ) |
Definition at line 260 of file lspserver/src/Protocol.cpp.
References lspserver::RenameFileOptions::ignoreIfExists, and lspserver::RenameFileOptions::overwrite.
| llvm::json::Value lspserver::toJSON | ( | const SelectionRange & | Out | ) |
Definition at line 1647 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 1336 of file lspserver/src/Protocol.cpp.
| llvm::json::Value lspserver::toJSON | ( | const SemanticTokensEdit & | Edit | ) |
Definition at line 1341 of file lspserver/src/Protocol.cpp.
References lspserver::SemanticTokensEdit::deleteTokens, SemanticTokenEncodingSize, lspserver::SemanticTokensEdit::startToken, and lspserver::SemanticTokensEdit::tokens.
| llvm::json::Value lspserver::toJSON | ( | const SemanticTokensOrDelta & | TE | ) |
Definition at line 1348 of file lspserver/src/Protocol.cpp.
References lspserver::SemanticTokensOrDelta::edits, lspserver::SemanticTokensOrDelta::resultId, and lspserver::SemanticTokensOrDelta::tokens.
| llvm::json::Value lspserver::toJSON | ( | const ShowDocumentParams & | Params | ) |
| llvm::json::Value lspserver::toJSON | ( | const ShowMessageParams & | R | ) |
Definition at line 662 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 1281 of file lspserver/src/Protocol.cpp.
References lspserver::SignatureHelp::activeParameter, lspserver::SignatureHelp::activeSignature, and lspserver::SignatureHelp::signatures.
| llvm::json::Value lspserver::toJSON | ( | const SignatureInformation & | SI | ) |
Definition at line 1264 of file lspserver/src/Protocol.cpp.
References lspserver::SignatureInformation::documentation, lspserver::SignatureInformation::label, lspserver::SignatureInformation::parameters, and lspserver::MarkupContent::value.
| llvm::json::Value lspserver::toJSON | ( | const SymbolInformation & | P | ) |
Definition at line 882 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 229 of file lspserver/src/Protocol.cpp.
References lspserver::TextDocumentEdit::edits, and lspserver::TextDocumentEdit::textDocument.
| llvm::json::Value lspserver::toJSON | ( | const TextDocumentIdentifier & | R | ) |
Definition at line 95 of file lspserver/src/Protocol.cpp.
References lspserver::TextDocumentIdentifier::uri.
| llvm::json::Value lspserver::toJSON | ( | const TextEdit & | P | ) |
Definition at line 198 of file lspserver/src/Protocol.cpp.
References lspserver::TextEdit::annotationId, lspserver::TextEdit::newText, and lspserver::TextEdit::range.
| llvm::json::Value lspserver::toJSON | ( | const TweakArgs & | A | ) |
Definition at line 1001 of file lspserver/src/Protocol.cpp.
References lspserver::TweakArgs::file, lspserver::TweakArgs::selection, and lspserver::TweakArgs::tweakID.
| llvm::json::Value lspserver::toJSON | ( | const TypeHierarchyItem & | I | ) |
Definition at line 1458 of file lspserver/src/Protocol.cpp.
References lspserver::TypeHierarchyItem::data, lspserver::TypeHierarchyItem::detail, lspserver::TypeHierarchyItem::kind, lspserver::TypeHierarchyItem::name, lspserver::TypeHierarchyItem::range, lspserver::TypeHierarchyItem::selectionRange, and lspserver::TypeHierarchyItem::uri.
| llvm::json::Value lspserver::toJSON | ( | const TypeHierarchyItem::ResolveParams & | RP | ) |
Definition at line 1446 of file lspserver/src/Protocol.cpp.
References lspserver::TypeHierarchyItem::ResolveParams::parents.
| llvm::json::Value lspserver::toJSON | ( | const URIForFile & | U | ) |
Serialize/deserialize URIForFile to/from a string URI.
Definition at line 89 of file lspserver/src/Protocol.cpp.
References lspserver::URIForFile::uri().
Referenced by operator<<(), operator<<(), operator<<(), operator<<(), operator<<(), toJSON(), toJSON(), toJSON(), toJSON(), toJSON(), and toJSON().
| llvm::json::Value lspserver::toJSON | ( | const VersionedTextDocumentIdentifier & | R | ) |
Definition at line 105 of file lspserver/src/Protocol.cpp.
References toJSON(), and lspserver::VersionedTextDocumentIdentifier::version.
| llvm::json::Value lspserver::toJSON | ( | const WorkDoneProgressBegin & | P | ) |
Definition at line 624 of file lspserver/src/Protocol.cpp.
References lspserver::WorkDoneProgressBegin::cancellable, lspserver::WorkDoneProgressBegin::percentage, and lspserver::WorkDoneProgressBegin::title.
| llvm::json::Value lspserver::toJSON | ( | const WorkDoneProgressCreateParams & | P | ) |
Definition at line 620 of file lspserver/src/Protocol.cpp.
References lspserver::WorkDoneProgressCreateParams::token.
| llvm::json::Value lspserver::toJSON | ( | const WorkDoneProgressEnd & | P | ) |
Definition at line 650 of file lspserver/src/Protocol.cpp.
References lspserver::WorkDoneProgressEnd::message.
| llvm::json::Value lspserver::toJSON | ( | const WorkDoneProgressReport & | P | ) |
Definition at line 638 of file lspserver/src/Protocol.cpp.
References lspserver::WorkDoneProgressReport::cancellable, lspserver::WorkDoneProgressReport::message, and lspserver::WorkDoneProgressReport::percentage.
| llvm::json::Value lspserver::toJSON | ( | const WorkspaceEdit & | WE | ) |
Definition at line 975 of file lspserver/src/Protocol.cpp.
References lspserver::WorkspaceEdit::changeAnnotations, lspserver::WorkspaceEdit::changes, and lspserver::WorkspaceEdit::documentChanges.
| llvm::json::Value lspserver::toJSON | ( | DiagnosticTag | Tag | ) |
Definition at line 756 of file lspserver/src/Protocol.cpp.
| llvm::json::Value lspserver::toJSON | ( | SymbolTag | Tag | ) |
Definition at line 1506 of file lspserver/src/Protocol.cpp.
| void lspserver::vlog | ( | const char * | Fmt, |
| Ts &&... | Vals ) |
Definition at line 63 of file Logger.h.
References lspserver::detail::log(), and lspserver::Logger::Verbose.
Referenced by lspserver::InboundPort::loop(), parseParam(), nixd::resolveExprPath(), and lspserver::OutboundPort::sendMessage().
|
constexpr |
Definition at line 427 of file lspserver/include/lspserver/Protocol.h.
|
constexpr |
Definition at line 425 of file lspserver/include/lspserver/Protocol.h.
Referenced by adjustKindToCapability().
|
extern |
|
constexpr |
Definition at line 1314 of file lspserver/src/Protocol.cpp.
Referenced by toJSON().
|
constexpr |
Definition at line 467 of file lspserver/include/lspserver/Protocol.h.
|
constexpr |
Definition at line 466 of file lspserver/include/lspserver/Protocol.h.
Referenced by adjustKindToCapability().