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

Unified Diff: dart/frog/leg/scanner/keyword.dart

Issue 9447100: Return null from stringValue and call slowToString() instead of toString(). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: changes Created 8 years, 10 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 | « dart/frog/leg/scanner/byte_strings.dart ('k') | dart/frog/leg/scanner/listener.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/scanner/keyword.dart
diff --git a/dart/frog/leg/scanner/keyword.dart b/dart/frog/leg/scanner/keyword.dart
index 0fe158306eefab5ff7250e5bb7d2a62af7a84fd2..afc6c8e9e0f2a7aa54b16123b828913e89457e9f 100644
--- a/dart/frog/leg/scanner/keyword.dart
+++ b/dart/frog/leg/scanner/keyword.dart
@@ -126,7 +126,7 @@ class Keyword implements SourceString {
int hashCode() => syntax.hashCode();
bool operator ==(other) {
- return other is SourceString && toString() == other.toString();
+ return other is SourceString && toString() == other.slowToString();
}
Iterator<int> iterator() => new StringCodeIterator(syntax);
@@ -136,6 +136,7 @@ class Keyword implements SourceString {
}
String toString() => syntax;
+ String slowToString() => syntax;
String get stringValue() => syntax;
bool isEmtpy() => false;
« no previous file with comments | « dart/frog/leg/scanner/byte_strings.dart ('k') | dart/frog/leg/scanner/listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698