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

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

Public Member Functions

 Location ()=default
 
 Location (const URIForFile &uri, Range range)
 
 Location (const URIForFile &uri, llvm::SourceMgr &mgr, SMRange range)
 Construct a Location from the given source range. More...
 

Public Attributes

URIForFile uri
 The text document's URI. More...
 
Range range
 

Friends

bool operator== (const Location &lhs, const Location &rhs)
 
bool operator!= (const Location &lhs, const Location &rhs)
 
bool operator< (const Location &lhs, const Location &rhs)
 

Detailed Description

Definition at line 385 of file Protocol.h.

Constructor & Destructor Documentation

◆ Location() [1/3]

mlir::lsp::Location::Location ( )
default

◆ Location() [2/3]

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

Definition at line 387 of file Protocol.h.

◆ Location() [3/3]

mlir::lsp::Location::Location ( const URIForFile uri,
llvm::SourceMgr &  mgr,
SMRange  range 
)
inline

Construct a Location from the given source range.

Definition at line 390 of file Protocol.h.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 401 of file Protocol.h.

◆ operator<

bool operator< ( const Location lhs,
const Location rhs 
)
friend

Definition at line 405 of file Protocol.h.

◆ operator==

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

Definition at line 397 of file Protocol.h.

Member Data Documentation

◆ range

Range mlir::lsp::Location::range

◆ uri

URIForFile mlir::lsp::Location::uri

The text document's URI.

Definition at line 394 of file Protocol.h.

Referenced by mlir::lsp::fromJSON(), getLspDiagnoticFromDiag(), mlir::lsp::operator<<(), and mlir::lsp::toJSON().


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