| Index: tools/gn/command_format.cc
|
| diff --git a/tools/gn/command_format.cc b/tools/gn/command_format.cc
|
| index cd10e3c5fe5b677cf0e9ebffbcd460f375c30a1f..d96e6a330fa39b1b2fc235d3d11ca990badf7ad9 100644
|
| --- a/tools/gn/command_format.cc
|
| +++ b/tools/gn/command_format.cc
|
| @@ -242,10 +242,12 @@ Printer::ExprStyle Printer::Expr(const ParseNode* root) {
|
| Sequence(kSequenceStyleFunctionCall,
|
| func_call->args()->contents(),
|
| func_call->args()->End());
|
| - Print(" ");
|
| - Sequence(kSequenceStyleBracedBlock,
|
| - func_call->block()->statements(),
|
| - func_call->block()->End());
|
| + if (func_call->block()) {
|
| + Print(" ");
|
| + Sequence(kSequenceStyleBracedBlock,
|
| + func_call->block()->statements(),
|
| + func_call->block()->End());
|
| + }
|
| } else if (const IdentifierNode* identifier = root->AsIdentifier()) {
|
| Print(identifier->value().value());
|
| } else if (const ListNode* list = root->AsList()) {
|
|
|