LspCpp/include/LibLsp/lsp/lsTextDocumentIdentifier.h
raw| 1 | #pragma once |
| 2 | |
| 3 | #include "LibLsp/JsonRpc/serializer.h" |
| 4 | #include "lsDocumentUri.h" |
| 5 | //Text documents are identified using a URI.On the protocol level, |
| 6 | //URIs are passed as strings.The corresponding JSON structure looks like this: |
| 7 | struct lsTextDocumentIdentifier |
| 8 | { |
| 9 | /** |
| 10 | * The text document's URI. |
| 11 | */ |
| 12 | lsDocumentUri uri; |
| 13 | MAKE_SWAP_METHOD(lsTextDocumentIdentifier, uri) |
| 14 | }; |
| 15 | MAKE_REFLECT_STRUCT(lsTextDocumentIdentifier, uri) |