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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user