| Index: tools/gn/parse_tree.cc
|
| diff --git a/tools/gn/parse_tree.cc b/tools/gn/parse_tree.cc
|
| index 9b2fc3f831a06118101695b4d4116094f844e9b6..1531747c57238613e5c36fb73b6ff5c28d4b6fa0 100644
|
| --- a/tools/gn/parse_tree.cc
|
| +++ b/tools/gn/parse_tree.cc
|
| @@ -438,7 +438,7 @@ void IdentifierNode::Print(std::ostream& out, int indent) const {
|
|
|
| // ListNode -------------------------------------------------------------------
|
|
|
| -ListNode::ListNode() {
|
| +ListNode::ListNode() : prefer_multiline_(false) {
|
| }
|
|
|
| ListNode::~ListNode() {
|
| @@ -481,7 +481,8 @@ Err ListNode::MakeErrorDescribing(const std::string& msg,
|
| }
|
|
|
| void ListNode::Print(std::ostream& out, int indent) const {
|
| - out << IndentFor(indent) << "LIST\n";
|
| + out << IndentFor(indent) << "LIST" << (prefer_multiline_ ? " multiline" : "")
|
| + << "\n";
|
| PrintComments(out, indent);
|
| for (const auto& cur : contents_)
|
| cur->Print(out, indent + 1);
|
|
|