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

Unified Diff: packages/csslib/lib/src/tree_base.dart

Issue 2989763002: Update charted to 0.4.8 and roll (Closed)
Patch Set: Removed Cutch from list of reviewers Created 3 years, 5 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
« no previous file with comments | « packages/csslib/lib/src/tree.dart ('k') | packages/csslib/lib/src/tree_printer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/csslib/lib/src/tree_base.dart
diff --git a/packages/csslib/lib/src/tree_base.dart b/packages/csslib/lib/src/tree_base.dart
index 095b4932f081cb162b8acc547f08cbe102920b3c..3ead0bf08079e61aba9d5446fc40d2b71f5abdcf 100644
--- a/packages/csslib/lib/src/tree_base.dart
+++ b/packages/csslib/lib/src/tree_base.dart
@@ -16,7 +16,7 @@ abstract class TreeNode {
TreeNode clone();
/** Classic double-dispatch visitor for implementing passes. */
- void visit(VisitorBase visitor);
+ visit(VisitorBase visitor);
/** A multiline string showing the node and its children. */
String toDebugString() {
@@ -59,16 +59,21 @@ class TreeOutput {
}
String toValue(value) {
- if (value == null) return 'null';
- else if (value is Identifier) return value.name;
- else return value.toString();
+ if (value == null)
+ return 'null';
+ else if (value is Identifier)
+ return value.name;
+ else
+ return value.toString();
}
void writeNode(String label, TreeNode node) {
write('${label}: ');
depth += 1;
- if (node != null) node.visit(printer);
- else writeln('null');
+ if (node != null)
+ node.visit(printer);
+ else
+ writeln('null');
depth -= 1;
}
« no previous file with comments | « packages/csslib/lib/src/tree.dart ('k') | packages/csslib/lib/src/tree_printer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698