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

This class represents a single include within a root file. More...

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

+ Collaboration diagram for mlir::lsp::SourceMgrInclude:

Public Member Functions

 SourceMgrInclude (const lsp::URIForFile &uri, const lsp::Range &range)
 
Hover buildHover () const
 Build a hover for the current include file. More...
 

Public Attributes

lsp::URIForFile uri
 The URI of the file that is included. More...
 
lsp::Range range
 The range of the include directive. More...
 

Detailed Description

This class represents a single include within a root file.

Definition at line 36 of file SourceMgrUtils.h.

Constructor & Destructor Documentation

◆ SourceMgrInclude()

mlir::lsp::SourceMgrInclude::SourceMgrInclude ( const lsp::URIForFile uri,
const lsp::Range range 
)
inline

Definition at line 37 of file SourceMgrUtils.h.

References buildHover().

Member Function Documentation

◆ buildHover()

Hover SourceMgrInclude::buildHover ( ) const

Build a hover for the current include file.

Definition at line 72 of file SourceMgrUtils.cpp.

References mlir::lsp::Hover::contents, mlir::lsp::URIForFile::file(), range, uri, and mlir::lsp::MarkupContent::value.

Referenced by SourceMgrInclude().

Member Data Documentation

◆ range

lsp::Range mlir::lsp::SourceMgrInclude::range

The range of the include directive.

Definition at line 47 of file SourceMgrUtils.h.

Referenced by buildHover().

◆ uri

lsp::URIForFile mlir::lsp::SourceMgrInclude::uri

The URI of the file that is included.

Definition at line 44 of file SourceMgrUtils.h.

Referenced by buildHover().


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