LLVM: llvm::lsp::Position Struct Reference (original) (raw)
#include "[llvm/Support/LSP/Protocol.h](Protocol%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| Position (int line=0, int character=0) | |
| Position (llvm::SourceMgr &mgr, SMLoc loc) | |
| Construct a position from the given source location. | |
| SMLoc | getAsSMLoc (llvm::SourceMgr &mgr) const |
| Convert this position into a source location in the main file of the given source manager. |
| Public Attributes | |
|---|---|
| int | line = 0 |
| Line position in a document (zero-based). | |
| int | character = 0 |
| Character offset on a line in a document (zero-based). |
Definition at line 295 of file Protocol.h.
◆ Position() [1/2]
| llvm::lsp::Position::Position ( int line = 0, int character = 0 ) | inline |
|---|
◆ Position() [2/2]
◆ getAsSMLoc()
◆ operator!=
◆ operator<
◆ operator<=
◆ operator==
◆ character
int llvm::lsp::Position::character = 0
◆ line
int llvm::lsp::Position::line = 0
The documentation for this struct was generated from the following file:
- include/llvm/Support/LSP/Protocol.h