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

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

+ Collaboration diagram for mlir::lsp::Hover:

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...
 
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 510 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 512 of file Protocol.h.

References mlir::lsp::Markdown.

Member Data Documentation

◆ contents

MarkupContent mlir::lsp::Hover::contents

The hover's content.

Definition at line 515 of file Protocol.h.

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

◆ range

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 519 of file Protocol.h.

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


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