LLVM 22.0.0git
llvm::lsp::Hover Struct Reference

#include "llvm/Support/LSP/Protocol.h"

Public Member Functions

 Hover (Range range)
 Construct a default hover with the given range that uses Markdown content.

Public Attributes

MarkupContent contents
 The hover's content.
std::optional< Rangerange
 An optional range is a range inside a text document that is used to visualize a hover, e.g.

Detailed Description

Definition at line 547 of file Protocol.h.

Constructor & Destructor Documentation

◆ Hover()

llvm::lsp::Hover::Hover ( Range range)
inline

Construct a default hover with the given range that uses Markdown content.

Definition at line 549 of file Protocol.h.

References contents, llvm::lsp::Markdown, and range.

Member Data Documentation

◆ contents

MarkupContent llvm::lsp::Hover::contents

The hover's content.

Definition at line 552 of file Protocol.h.

Referenced by Hover(), and llvm::lsp::toJSON().

◆ range

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

An optional range is a range inside a text document that is used to visualize a hover, e.g.

by changing the background color.

Definition at line 556 of file Protocol.h.

Referenced by Hover(), and llvm::lsp::toJSON().


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