blob: ec4023a621981e11eb597c86e9cec5b99cbf69ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// slang-serialize-ast.h
#ifndef SLANG_SERIALIZE_AST_H
#define SLANG_SERIALIZE_AST_H
#include "../core/slang-riff.h"
#include "slang-ast-all.h"
#include "slang-ast-builder.h"
#include "slang-ast-support-types.h"
#include "slang-serialize-source-loc.h"
#include "slang-serialize.h"
namespace Slang
{
class Linkage;
void writeSerializedModuleAST(
RIFF::BuildCursor& cursor,
ModuleDecl* moduleDecl,
SerialSourceLocWriter* sourceLocWriter);
ModuleDecl* readSerializedModuleAST(
Linkage* linkage,
ASTBuilder* astBuilder,
DiagnosticSink* sink,
ISlangBlob* blobHoldingSerializedData,
RIFF::Chunk const* chunk,
SerialSourceLocReader* sourceLocReader,
SourceLoc requestingSourceLoc);
} // namespace Slang
#endif
|