Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Unified Diff: lib/src/tree_printer.dart

Issue 998843003: pkg/csslib: formatting (Closed) Base URL: https://github.com/dart-lang/csslib@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/src/tree_printer.dart
diff --git a/lib/src/tree_printer.dart b/lib/src/tree_printer.dart
index 3a8b74821a1660a24c94932868f315566a75871e..8cb4de8186af86030bbde34df3bcb1e66e9ed7de 100644
--- a/lib/src/tree_printer.dart
+++ b/lib/src/tree_printer.dart
@@ -17,7 +17,9 @@ String treeToDebugString(StyleSheet styleSheet, [bool useSpan = false]) {
class _TreePrinter extends Visitor {
final TreeOutput output;
final bool useSpan;
- _TreePrinter(this.output, this.useSpan) { output.printer = this; }
+ _TreePrinter(this.output, this.useSpan) {
+ output.printer = this;
+ }
void visitTree(StyleSheet tree) => visitStylesheet(tree);
@@ -244,8 +246,8 @@ class _TreePrinter extends Visitor {
void visitSelector(Selector node) {
heading('Selector', node);
output.depth++;
- output.writeNodeList('simpleSelectorsSequences',
- node.simpleSelectorSequences);
+ output.writeNodeList(
+ 'simpleSelectorsSequences', node.simpleSelectorSequences);
output.depth--;
}
@@ -370,7 +372,7 @@ class _TreePrinter extends Visitor {
output.depth++;
output.writeValue('value', node.text);
output.depth--;
- }
+ }
void visitHexColorTerm(HexColorTerm node) {
heading('HexColorTerm', node);

Powered by Google App Engine
This is Rietveld 408576698