nixd
Loading...
Searching...
No Matches
JSONDiagnostic.h
Go to the documentation of this file.
1/// \file
2/// \brief Provide jsonified diagnostic, for other languages/structured output.
3#pragma once
4
5#include "Diagnostic.h"
6#include "nixf/Basic/Range.h"
7
8#include <nlohmann/json.hpp>
9
10namespace nixf {
11
12void to_json // NOLINT(readability-identifier-naming)
13 (nlohmann::json &R, const LexerCursor &LC);
14
15void to_json // NOLINT(readability-identifier-naming)
16 (nlohmann::json &R, const LexerCursorRange &LCR);
17
18void to_json // NOLINT(readability-identifier-naming)
19 (nlohmann::json &R, const PartialDiagnostic &D);
20
21void to_json // NOLINT(readability-identifier-naming)
22 (nlohmann::json &R, const Diagnostic &D);
23
24void to_json // NOLINT(readability-identifier-naming)
25 (nlohmann::json &R, const Note &N);
26
27void to_json // NOLINT(readability-identifier-naming)
28 (nlohmann::json &R, const TextEdit &D);
29
30void to_json // NOLINT(readability-identifier-naming)
31 (nlohmann::json &R, const Fix &F);
32
33} // namespace nixf
A point in the source file.
Definition Range.h:57
void to_json(nlohmann::json &R, const LexerCursor &LC)