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

A range in a text document that links to an internal or external resource, like another text document or a web site. More...

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

Public Member Functions

 DocumentLink ()=default
 
 DocumentLink (Range range, URIForFile target)
 

Public Attributes

Range range
 The range this link applies to. More...
 
URIForFile target
 The uri this link points to. If missing a resolve request is sent later. More...
 

Friends

bool operator== (const DocumentLink &lhs, const DocumentLink &rhs)
 
bool operator!= (const DocumentLink &lhs, const DocumentLink &rhs)
 

Detailed Description

A range in a text document that links to an internal or external resource, like another text document or a web site.

Definition at line 1030 of file Protocol.h.

Constructor & Destructor Documentation

◆ DocumentLink() [1/2]

mlir::lsp::DocumentLink::DocumentLink ( )
default

◆ DocumentLink() [2/2]

mlir::lsp::DocumentLink::DocumentLink ( Range  range,
URIForFile  target 
)
inline

Definition at line 1032 of file Protocol.h.

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const DocumentLink lhs,
const DocumentLink rhs 
)
friend

Definition at line 1052 of file Protocol.h.

◆ operator==

bool operator== ( const DocumentLink lhs,
const DocumentLink rhs 
)
friend

Definition at line 1048 of file Protocol.h.

Member Data Documentation

◆ range

Range mlir::lsp::DocumentLink::range

The range this link applies to.

Definition at line 1036 of file Protocol.h.

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

◆ target

URIForFile mlir::lsp::DocumentLink::target

The uri this link points to. If missing a resolve request is sent later.

Definition at line 1039 of file Protocol.h.

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


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