Chromium Code Reviews| Index: pkg/analyzer/tool/summary/generate.dart |
| diff --git a/pkg/analyzer/tool/summary/generate.dart b/pkg/analyzer/tool/summary/generate.dart |
| index 03593db7554fe86032e9483ea3b51e0df9709caf..51d499447b389862a45dd95ab969487cbf1706f8 100644 |
| --- a/pkg/analyzer/tool/summary/generate.dart |
| +++ b/pkg/analyzer/tool/summary/generate.dart |
| @@ -332,7 +332,7 @@ class _CodeGenerator { |
| indent(() { |
| out('assert(!_finished);'); |
| out('assert(!_json.containsKey(${quoted(fieldName)}));'); |
| - out('if (_value != null$condition) {'); |
| + out('if (!(_value == null$condition)) {'); |
|
Brian Wilkerson
2015/12/18 18:16:10
The case where there is no default value got uglie
|
| indent(() { |
| out('_json[${quoted(fieldName)}] = $conversion;'); |
| }); |