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

#include <Protocol.h>

Collaboration diagram for clang::clangd::TextEdit:
Collaboration graph
[legend]

Public Attributes

Range range
 The range of the text document to be manipulated.
 
std::string newText
 The string to be inserted.
 

Detailed Description

Definition at line 241 of file Protocol.h.

Member Data Documentation

◆ newText

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

The string to be inserted.

For delete operations use an empty string.

Definition at line 248 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 244 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: