diff options
Diffstat (limited to 'graphics/asymptote/LspCpp/include/LibLsp/lsp/lsp_diagnostic.h')
-rw-r--r-- | graphics/asymptote/LspCpp/include/LibLsp/lsp/lsp_diagnostic.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/graphics/asymptote/LspCpp/include/LibLsp/lsp/lsp_diagnostic.h b/graphics/asymptote/LspCpp/include/LibLsp/lsp/lsp_diagnostic.h index 3ddea4b9ee..e05e816b69 100644 --- a/graphics/asymptote/LspCpp/include/LibLsp/lsp/lsp_diagnostic.h +++ b/graphics/asymptote/LspCpp/include/LibLsp/lsp/lsp_diagnostic.h @@ -1,4 +1,5 @@ #pragma once +#include <optional> #include "lsRange.h" #include "lsTextEdit.h" #include "lsDocumentUri.h" @@ -92,15 +93,15 @@ struct lsDiagnostic { // The diagnostic's severity. Can be omitted. If omitted it is up to the // client to interpret diagnostics as error, warning, info or hint. - boost::optional<lsDiagnosticSeverity> severity; + optional<lsDiagnosticSeverity> severity; // The diagnostic's code. Can be omitted. - boost::optional< std::pair<boost::optional<std::string>, boost::optional<int>> > code; + optional< std::pair<optional<std::string>, optional<int>> > code; - boost::optional<DiagnosticCodeDescription> codeDescription; + optional<DiagnosticCodeDescription> codeDescription; // A human-readable string describing the source of this // diagnostic, e.g. 'typescript' or 'super lint'. - boost::optional < std::string >source ; + optional < std::string >source ; // The diagnostic's message. std::string message; @@ -113,7 +114,7 @@ struct lsDiagnostic { * * @since 3.15.0 */ - boost::optional<std::vector<DiagnosticTag>> tags; + optional<std::vector<DiagnosticTag>> tags; /** @@ -122,7 +123,7 @@ struct lsDiagnostic { * * Since 3.7.0 */ - boost::optional<std::vector<DiagnosticRelatedInformation>> relatedInformation; + optional<std::vector<DiagnosticRelatedInformation>> relatedInformation; /** * A data entry field that is preserved between a @@ -131,7 +132,7 @@ struct lsDiagnostic { * * @since 3.16.0 */ - boost::optional<lsp::Any> data; + optional<lsp::Any> data; bool operator==(const lsDiagnostic& rhs) const; bool operator!=(const lsDiagnostic& rhs) const; |