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.cpp16
1 files changed, 2 insertions, 14 deletions
diff --git a/source/slang/slang.cpp b/source/slang/slang.cpp
index 6d4a27733..b79cecb59 100644
--- a/source/slang/slang.cpp
+++ b/source/slang/slang.cpp
@@ -1064,7 +1064,7 @@ void FrontEndCompileRequest::parseTranslationUnit(
StringBuilder buf;
SourceWriter writer(linkage->getSourceManager(), LineDirectiveMode::None);
- ASTDumpUtil::dump(translationUnit->getModuleDecl(), ASTDumpUtil::Style::Flat, &writer);
+ ASTDumpUtil::dump(translationUnit->getModuleDecl(), ASTDumpUtil::Style::Flat, 0, &writer);
const String& path = sourceFile->getPathInfo().foundPath;
if (path.getLength())
@@ -1079,19 +1079,7 @@ void FrontEndCompileRequest::parseTranslationUnit(
#if 0
// Test serialization
{
- RefPtr<ASTSerialClasses> classes = new ASTSerialClasses;
-
- OwnedMemoryStream stream(FileAccess::ReadWrite);
-
- {
- ASTSerialWriter writer(classes);
-
- // Lets serialize it all
- writer.addPointer(translationUnit->getModuleDecl());
- // Let's stick it all in a stream
- writer.write(&stream);
- }
-
+ ASTSerialTestUtil::testSerialize(translationUnit->getModuleDecl(), getSession()->getRootNamePool(), getLinkage()->getASTBuilder()->getSharedASTBuilder(), getSourceManager());
}
#endif