MLIR  20.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::lsp::Hover Struct Reference

#include "mlir/Tools/lsp-server-support/Protocol.h"

Public Member Functions

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

Public Attributes

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

Detailed Description

Definition at line 537 of file Protocol.h.

Constructor & Destructor Documentation

◆ Hover()

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

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

Definition at line 539 of file Protocol.h.

References mlir::lsp::Markdown.

Member Data Documentation

◆ contents

MarkupContent mlir::lsp::Hover::contents

The hover's content.

Definition at line 542 of file Protocol.h.

Referenced by mlir::lsp::SourceMgrInclude::buildHover(), and mlir::lsp::toJSON().

◆ range

std::optional<Range> mlir::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 546 of file Protocol.h.

Referenced by mlir::lsp::toJSON().


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