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

Unified Diff: lib/compiler/implementation/scanner/keyword.dart

Issue 10310040: Sort the output (for now just the classes and instance members). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 8 years, 7 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: lib/compiler/implementation/scanner/keyword.dart
diff --git a/lib/compiler/implementation/scanner/keyword.dart b/lib/compiler/implementation/scanner/keyword.dart
index 761c130aee22f805b6a167395df0c27efaef4400..c07f9bc466f3bf4b74d163c2d9d7cc1a859f5a2f 100644
--- a/lib/compiler/implementation/scanner/keyword.dart
+++ b/lib/compiler/implementation/scanner/keyword.dart
@@ -124,6 +124,7 @@ class Keyword implements SourceString {
}
int hashCode() => syntax.hashCode();
+ int compareTo(SourceString other) => sourceStringCompare(this, other);
bool operator ==(other) {
return other is SourceString && toString() == other.slowToString();

Powered by Google App Engine
This is Rietveld 408576698