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

Unified Diff: frog/token.dart

Issue 9121025: cleanup to Value - fix for StringEscapesTest (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 11 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: frog/token.dart
diff --git a/frog/token.dart b/frog/token.dart
index 4d46117e33d73bede841b4b5b8d0fe04f0b7df22..8e5b98c7044088b35ca7ddf5fc60e53b7873d2fb 100644
--- a/frog/token.dart
+++ b/frog/token.dart
@@ -45,6 +45,13 @@ class Token {
}
}
+/** A token containing a parsed literal value. */
+class LiteralToken extends Token {
+ var value;
+ LiteralToken(kind, source, start, end, this.value)
+ : super(kind, source, start, end);
+}
+
/** A token containing error information. */
class ErrorToken extends Token {
String message;

Powered by Google App Engine
This is Rietveld 408576698