diff options
Diffstat (limited to 'source/compiler-core/slang-json-source-map-util.h')
| -rw-r--r-- | source/compiler-core/slang-json-source-map-util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/compiler-core/slang-json-source-map-util.h b/source/compiler-core/slang-json-source-map-util.h index 51b11b6cd..ba417dd7c 100644 --- a/source/compiler-core/slang-json-source-map-util.h +++ b/source/compiler-core/slang-json-source-map-util.h @@ -14,6 +14,10 @@ struct JSONSourceMapUtil /// Converts the source map contents into JSON static SlangResult encode(SourceMap* sourceMap, JSONContainer* container, DiagnosticSink* sink, JSONValue& outValue); + + /// Read the blob (encoded as JSON) as a source map. + /// Sink is optional, and can be passed as nullptr + static SlangResult read(ISlangBlob* blob, DiagnosticSink* sink, RefPtr<SourceMap>& outSourceMap); }; } // namespace Slang |
