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

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

+ Collaboration diagram for mlir::lsp::Location:

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 355 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 357 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 360 of file Protocol.h.

Friends And Related Function Documentation

◆ operator!=

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

Definition at line 371 of file Protocol.h.

◆ operator<

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

Definition at line 375 of file Protocol.h.

◆ operator==

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

Definition at line 367 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 364 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: