Chromium Code Reviews| Index: pkg/csslib/lib/src/tree_printer.dart |
| diff --git a/pkg/csslib/lib/src/tree_printer.dart b/pkg/csslib/lib/src/tree_printer.dart |
| index 8c394766f008acb4c42c3569268acd4d5f339bd9..3a8b74821a1660a24c94932868f315566a75871e 100644 |
| --- a/pkg/csslib/lib/src/tree_printer.dart |
| +++ b/pkg/csslib/lib/src/tree_printer.dart |
| @@ -129,9 +129,9 @@ class _TreePrinter extends Visitor { |
| void visitStyletDirective(StyletDirective node) { |
| heading('StyletDirective', node); |
| - output.writeValue('dartClassName', node._dartClassName); |
| + output.writeValue('dartClassName', node.dartClassName); |
| output.depth++; |
| - output.writeNodeList('rulesets', node._rulesets); |
| + output.writeNodeList('rulesets', node.rulesets); |
| output.depth--; |
| } |
| @@ -172,7 +172,8 @@ class _TreePrinter extends Visitor { |
| */ |
| void visitIncludeDirective(IncludeDirective node) { |
| heading('IncludeDirective ${node.name}', node); |
| - output.writeNodeList('parameters', node.args); |
| + var flattened = node.args.expand((e) => e).toList(); |
|
terry
2013/11/07 18:17:05
Leave writeNodeList and writeList to take a List m
kevmoo-old
2013/11/07 18:23:19
writeNodeList assumes each element in list hase a
|
| + output.writeNodeList('parameters', flattened); |
| } |
| void visitIncludeMixinAtDeclaration(IncludeMixinAtDeclaration node) { |
| @@ -199,7 +200,7 @@ class _TreePrinter extends Visitor { |
| void visitDeclarationGroup(DeclarationGroup node) { |
| heading('DeclarationGroup', node); |
| output.depth++; |
| - output.writeNodeList('declarations', node._declarations); |
| + output.writeNodeList('declarations', node.declarations); |
| output.depth--; |
| } |
| @@ -207,7 +208,7 @@ class _TreePrinter extends Visitor { |
| heading('MarginGroup', node); |
| output.depth++; |
| output.writeValue('@directive', node.margin_sym); |
| - output.writeNodeList('declarations', node._declarations); |
| + output.writeNodeList('declarations', node.declarations); |
| output.depth--; |
| } |