MLIR
20.0.0git
|
#include "mlir/Tools/lsp-server-support/Protocol.h"
Public Member Functions | |
Range ()=default | |
Range (Position start, Position end) | |
Range (Position loc) | |
Range (llvm::SourceMgr &mgr, SMRange range) | |
Construct a range from the given source range. More... | |
bool | contains (Position pos) const |
bool | contains (Range range) const |
SMRange | getAsSMRange (llvm::SourceMgr &mgr) const |
Convert this range into a source range in the main file of the given source manager. More... | |
Public Attributes | |
Position | start |
The range's start position. More... | |
Position | end |
The range's end position. More... | |
Friends | |
bool | operator== (const Range &lhs, const Range &rhs) |
bool | operator!= (const Range &lhs, const Range &rhs) |
bool | operator< (const Range &lhs, const Range &rhs) |
Definition at line 329 of file Protocol.h.
|
default |
Definition at line 331 of file Protocol.h.
|
inline |
Definition at line 332 of file Protocol.h.
|
inline |
Construct a range from the given source range.
Definition at line 335 of file Protocol.h.
|
inline |
Definition at line 354 of file Protocol.h.
|
inline |
Definition at line 355 of file Protocol.h.
|
inline |
Convert this range into a source range in the main file of the given source manager.
Definition at line 361 of file Protocol.h.
References end, mlir::lsp::Position::getAsSMLoc(), and start.
Definition at line 347 of file Protocol.h.
Definition at line 350 of file Protocol.h.
Definition at line 344 of file Protocol.h.
Position mlir::lsp::Range::end |
The range's end position.
Definition at line 342 of file Protocol.h.
Referenced by contains(), mlir::lsp::fromJSON(), getAsSMRange(), mlir::lsp::operator<<(), and mlir::lsp::toJSON().
Position mlir::lsp::Range::start |
The range's start position.
Definition at line 339 of file Protocol.h.
Referenced by contains(), mlir::lsp::fromJSON(), getAsSMRange(), mlir::lsp::operator<<(), and mlir::lsp::toJSON().