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

Unified Diff: frog/tree.dart

Issue 8937017: New CSS parser written in Dart to replace pyparser (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Put back for DartC Created 9 years 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: frog/tree.dart
diff --git a/frog/tree.dart b/frog/tree.dart
index 7beba742f87f2694c98986683a12c37266376818..aef83a07f6e8a828c80baf0a3d400864dbd872a6 100644
--- a/frog/tree.dart
+++ b/frog/tree.dart
@@ -79,7 +79,8 @@ class TreeOutput {
}
void heading(String name, span) {
- buf.add(name);
+ write(name);
+ buf.add(' (${span.locationText})');
buf.add('\n');
}
@@ -117,7 +118,7 @@ class TreeOutput {
}
void writeNodeList(String label, List list) {
- writeln(label + ':...');
+ writeln('${label} [');
if (list != null) {
depth += 1;
for (var node in list) {
@@ -128,6 +129,7 @@ class TreeOutput {
}
}
depth -= 1;
+ writeln(']');
}
}
}
« no previous file with comments | « frog/tests/htmltest.dart ('k') | utils/css/css.dart » ('j') | utils/css/generate.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698