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

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

Issue 426053003: Use source_span rather than source_maps in csslib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add CHANGELOG Created 6 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 | « pkg/csslib/lib/src/tree.dart ('k') | pkg/csslib/lib/src/validate.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/csslib/lib/src/tree_base.dart
diff --git a/pkg/csslib/lib/src/tree_base.dart b/pkg/csslib/lib/src/tree_base.dart
index 6dc27b18e30e5f063c1a3af64934a8fca364e204..35aef13d123717a9ee4b2792f1805315bfb75aab 100644
--- a/pkg/csslib/lib/src/tree_base.dart
+++ b/pkg/csslib/lib/src/tree_base.dart
@@ -9,7 +9,7 @@ part of csslib.visitor;
*/
abstract class TreeNode {
/** The source code this [TreeNode] represents. */
- final Span span;
+ final SourceSpan span;
TreeNode(this.span);
@@ -29,7 +29,7 @@ abstract class TreeNode {
/** The base type for expressions. */
abstract class Expression extends TreeNode {
- Expression(Span span): super(span);
+ Expression(SourceSpan span): super(span);
}
/** Simple class to provide a textual dump of trees for debugging. */
@@ -53,7 +53,7 @@ class TreeOutput {
void heading(String name, [span]) {
write(name);
if (span != null) {
- buf.write(' (${span.getLocationMessage('')})');
+ buf.write(' (${span.message('')})');
}
buf.write('\n');
}
« no previous file with comments | « pkg/csslib/lib/src/tree.dart ('k') | pkg/csslib/lib/src/validate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698