summaryrefslogtreecommitdiffstats
path: root/source/slang/slang.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang.cpp')
-rw-r--r--source/slang/slang.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 5279b2a40..7c535d64b 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -15,6 +15,7 @@
#include "slang-type-layout.h"
#include "slang-ast-dump.h"
+#include "slang-ast-serialize.h"
#include "slang-repro.h"
@@ -1074,6 +1075,18 @@ void FrontEndCompileRequest::parseTranslationUnit(
File::writeAllText(fileName, writer.getContent());
}
}
+
+#if 0
+ // Test serialization
+ {
+ RefPtr<ASTSerialClasses> classes = new ASTSerialClasses;
+ ASTSerialWriter writer(classes);
+
+ // Lets serialize it all
+ writer.addPointer(translationUnit->getModuleDecl());
+ }
+#endif
+
}
}