| 1 |
#pragma once |
| 2 |
|
| 3 |
#include "LibLsp/JsonRpc/message.h" |
| 4 |
|
| 5 |
#include "lsTextDocumentIdentifier.h" |
| 6 |
#include "lsPosition.h" |
| 7 |
|
| 8 |
/** |
| 9 |
* A parameter literal used in requests to pass a text document and a position inside that document. |
| 10 |
*/ |
| 11 |
struct lsTextDocumentPositionParams |
| 12 |
{ |
| 13 |
// The text document. |
| 14 |
lsTextDocumentIdentifier textDocument; |
| 15 |
|
| 16 |
// The position inside the text document. |
| 17 |
lsPosition position; |
| 18 |
|
| 19 |
/** |
| 20 |
* Legacy property to support protocol version 1.0 requests. |
| 21 |
*/ |
| 22 |
optional<lsDocumentUri> uri; |
| 23 |
|
| 24 |
MAKE_SWAP_METHOD(lsTextDocumentPositionParams, textDocument, position, uri); |
| 25 |
}; |
| 26 |
MAKE_REFLECT_STRUCT(lsTextDocumentPositionParams, textDocument, position, uri); |