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

Unified Diff: pkg/analyzer/lib/src/generated/scanner.dart

Issue 745873002: Stop copying tokens in incremental scanner (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean-up Created 6 years, 1 month 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: pkg/analyzer/lib/src/generated/scanner.dart
diff --git a/pkg/analyzer/lib/src/generated/scanner.dart b/pkg/analyzer/lib/src/generated/scanner.dart
index cd56ce17dcaad8d755054018511f79d8469a8943..13808d54de7fa81376a59de960b191399889e7c3 100644
--- a/pkg/analyzer/lib/src/generated/scanner.dart
+++ b/pkg/analyzer/lib/src/generated/scanner.dart
@@ -405,6 +405,9 @@ class Keyword {
*/
const Keyword(this.name, this.syntax, [this.isPseudoKeyword = false]);
+ @override
+ String toString() => name;
+
/**
* Create a table mapping the lexemes of keywords to the corresponding keyword
* and return the table that was created.
@@ -2189,6 +2192,9 @@ class TokenClass {
final int precedence;
const TokenClass(this.name, [this.precedence = 0]);
+
+ @override
+ String toString() => name;
}
/**
@@ -2524,6 +2530,9 @@ class TokenType {
* an operator.
*/
int get precedence => _tokenClass.precedence;
+
+ @override
+ String toString() => name;
}
class TokenType_EOF extends TokenType {

Powered by Google App Engine
This is Rietveld 408576698