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

Unified Diff: pkg/compiler/lib/src/elements/common.dart

Issue 2221273002: dart2js: Sort libraries by Uri only. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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: pkg/compiler/lib/src/elements/common.dart
diff --git a/pkg/compiler/lib/src/elements/common.dart b/pkg/compiler/lib/src/elements/common.dart
index b3a43ca961082fe351a7f95daa874024f70dac95..7f5fbbbedd8a6c654ed6875075f2b78ea07eb76f 100644
--- a/pkg/compiler/lib/src/elements/common.dart
+++ b/pkg/compiler/lib/src/elements/common.dart
@@ -182,18 +182,9 @@ abstract class LibraryElementCommon implements LibraryElement {
return path.substring(path.lastIndexOf('/') + 1);
}
}
-
- int compareTo(LibraryElement other) {
- if (this == other) return 0;
- return libraryOrScriptName.compareTo(other.libraryOrScriptName);
- }
}
abstract class CompilationUnitElementCommon implements CompilationUnitElement {
- int compareTo(CompilationUnitElement other) {
- if (this == other) return 0;
- return '${script.readableUri}'.compareTo('${other.script.readableUri}');
- }
}
abstract class ClassElementCommon implements ClassElement {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/elements.dart » ('j') | pkg/compiler/lib/src/elements/elements.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698