clang-tools 19.0.0git
Public Attributes | List of all members
clang::clangd::TextEdit Struct Reference

#include <Protocol.h>

Public Attributes

Range range
 The range of the text document to be manipulated.
 
std::string newText
 The string to be inserted.
 
ChangeAnnotationIdentifier annotationId = ""
 The actual annotation identifier (optional) If empty, then this field is nullopt.
 

Detailed Description

Definition at line 243 of file Protocol.h.

Member Data Documentation

◆ annotationId

ChangeAnnotationIdentifier clang::clangd::TextEdit::annotationId = ""

The actual annotation identifier (optional) If empty, then this field is nullopt.

Definition at line 254 of file Protocol.h.

Referenced by clang::clangd::fromJSON(), and clang::clangd::toJSON().

◆ newText

std::string clang::clangd::TextEdit::newText

The string to be inserted.

For delete operations use an empty string.

Definition at line 250 of file Protocol.h.

Referenced by clang::clangd::fromJSON(), clang::clangd::operator<<(), clang::clangd::operator==(), and clang::clangd::toJSON().

◆ range

Range clang::clangd::TextEdit::range

The range of the text document to be manipulated.

To insert text into a document create a range where start === end.

Definition at line 246 of file Protocol.h.

Referenced by clang::clangd::fromJSON(), clang::clangd::operator<<(), clang::clangd::operator==(), and clang::clangd::toJSON().


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