LLVM: llvm::lsp::TextDocumentContentChangeEvent Struct Reference (original) (raw)

#include "[llvm/Support/LSP/Protocol.h](Protocol%5F8h%5Fsource.html)"

Public Member Functions
LogicalResult applyTo (std::string &contents) const
Try to apply this change to the given contents string.
Public Attributes
std::optional< Range > range
The range of the document that changed.
std::optional< int > rangeLength
The length of the range that got replaced.
std::string text
The new text of the range/document.

Definition at line 501 of file Protocol.h.

applyTo() [1/2]

applyTo() [2/2]

LogicalResult TextDocumentContentChangeEvent::applyTo ( std::string & contents ) const

range

std::optional<Range> llvm::lsp::TextDocumentContentChangeEvent::range

rangeLength

std::optional llvm::lsp::TextDocumentContentChangeEvent::rangeLength

The length of the range that got replaced.

Definition at line 512 of file Protocol.h.

text

std::string llvm::lsp::TextDocumentContentChangeEvent::text


The documentation for this struct was generated from the following files: