blob: 51b11b6cd3fd263947927c9dc54ac2419bd24846 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef SLANG_COMPILER_CORE_JSON_SOURCE_MAP_UTIL_H
#define SLANG_COMPILER_CORE_JSON_SOURCE_MAP_UTIL_H
#include "slang-source-map.h"
#include "slang-json-value.h"
namespace Slang {
struct JSONSourceMapUtil
{
/// Decode from root into the source map
static SlangResult decode(JSONContainer* container, JSONValue root, DiagnosticSink* sink, RefPtr<SourceMap>& out);
/// Converts the source map contents into JSON
static SlangResult encode(SourceMap* sourceMap, JSONContainer* container, DiagnosticSink* sink, JSONValue& outValue);
};
} // namespace Slang
#endif // SLANG_COMPILER_CORE_JSON_SOURCE_MAP_UTIL_H
|