mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Syntax] Don't pretty-print -emit-syntax JSON output (#15380)
This commit is contained in:
@@ -288,7 +288,7 @@ static bool emitSyntax(SourceFile *SF, LangOptions &LangOpts,
|
||||
auto os = getFileOutputStream(OutputFilename, SF->getASTContext());
|
||||
if (!os) return true;
|
||||
|
||||
json::Output jsonOut(*os);
|
||||
json::Output jsonOut(*os, /*PrettyPrint=*/false);
|
||||
auto Root = SF->getSyntaxRoot().getRaw();
|
||||
jsonOut << *Root;
|
||||
*os << "\n";
|
||||
|
||||
Reference in New Issue
Block a user