nixd
Loading...
Searching...
No Matches
libnixf
include
nixf
Basic
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
10
namespace
nixf
{
11
12
void
to_json
// NOLINT(readability-identifier-naming)
13
(nlohmann::json &R,
const
LexerCursor
&LC);
14
15
void
to_json
// NOLINT(readability-identifier-naming)
16
(nlohmann::json &R,
const
LexerCursorRange
&LCR);
17
18
void
to_json
// NOLINT(readability-identifier-naming)
19
(nlohmann::json &R,
const
PartialDiagnostic
&D);
20
21
void
to_json
// NOLINT(readability-identifier-naming)
22
(nlohmann::json &R,
const
Diagnostic
&D);
23
24
void
to_json
// NOLINT(readability-identifier-naming)
25
(nlohmann::json &R,
const
Note
&N);
26
27
void
to_json
// NOLINT(readability-identifier-naming)
28
(nlohmann::json &R,
const
TextEdit
&D);
29
30
void
to_json
// NOLINT(readability-identifier-naming)
31
(nlohmann::json &R,
const
Fix
&F);
32
33
}
// namespace nixf
Diagnostic.h
Range.h
nixf::Fix
Definition
Diagnostic.h:57
nixf::LexerCursorRange
Definition
Range.h:105
nixf::LexerCursor
A point in the source file.
Definition
Range.h:57
nixf::Note
Definition
Diagnostic.h:114
nixf::PartialDiagnostic
Definition
Diagnostic.h:79
nixf::TextEdit
Definition
Diagnostic.h:25
Diagnostic
Definition
Diagnostic.cpp.py:1
nixf
Definition
Diagnostic.h:19
nixf::to_json
void to_json(nlohmann::json &R, const LexerCursor &LC)
Generated by
1.12.0