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

Unified Diff: pkg/csslib/lib/src/token.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/messages.dart ('k') | pkg/csslib/lib/src/tree.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/csslib/lib/src/token.dart
diff --git a/pkg/csslib/lib/src/token.dart b/pkg/csslib/lib/src/token.dart
index 7e70f88c0823994a1cb50c4382d3b52c6fa3c895..75ae6c5fc541ab594b4c9350c064c51420f54119 100644
--- a/pkg/csslib/lib/src/token.dart
+++ b/pkg/csslib/lib/src/token.dart
@@ -12,7 +12,7 @@ class Token {
final int kind;
/** The location where this token was parsed from. */
- final Span span;
+ final SourceSpan span;
/** The start offset of this token. */
int get start => span.start.offset;
@@ -43,13 +43,13 @@ class Token {
/** A token containing a parsed literal value. */
class LiteralToken extends Token {
var value;
- LiteralToken(int kind, Span span, this.value) : super(kind, span);
+ LiteralToken(int kind, SourceSpan span, this.value) : super(kind, span);
}
/** A token containing error information. */
class ErrorToken extends Token {
String message;
- ErrorToken(int kind, Span span, this.message) : super(kind, span);
+ ErrorToken(int kind, SourceSpan span, this.message) : super(kind, span);
}
/**
@@ -61,6 +61,6 @@ class ErrorToken extends Token {
class IdentifierToken extends Token {
final String text;
- IdentifierToken(this.text, int kind, Span span)
+ IdentifierToken(this.text, int kind, SourceSpan span)
: super(kind, span);
}
« no previous file with comments | « pkg/csslib/lib/src/messages.dart ('k') | pkg/csslib/lib/src/tree.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698