MLIR  16.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 "Tools/lsp-server-support/Protocol.h"

+ Collaboration diagram for mlir::lsp::DocumentLink:

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

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 1012 of file Protocol.h.

◆ operator==

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

Definition at line 1008 of file Protocol.h.

Member Data Documentation

◆ range

Range mlir::lsp::DocumentLink::range

The range this link applies to.

Definition at line 996 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 999 of file Protocol.h.

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


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