[Syntax] Don't pretty-print -emit-syntax JSON output (#15380)

This commit is contained in:
Harlan
2018-03-27 10:55:59 -04:00
committed by GitHub
parent bdfa6cd4d7
commit 527cce409a
4 changed files with 16 additions and 16 deletions

View File

@@ -1798,7 +1798,7 @@ void SwiftEditorDocument::readSyntaxInfo(EditorConsumer &Consumer) {
if (Consumer.syntaxTreeEnabled()) {
std::string SyntaxContent;
llvm::raw_string_ostream OS(SyntaxContent);
json::Output JsonOut(OS);
json::Output JsonOut(OS, /*PrettyPrint=*/false);
auto Root = Impl.SyntaxInfo->getSourceFile().getSyntaxRoot().getRaw();
JsonOut << *Root;
Consumer.handleSerializedSyntaxTree(OS.str());