| Index: sdk/lib/_internal/compiler/implementation/elements/elements.dart
|
| diff --git a/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
|
| index 65a4c568b6655db779ddb7363d558d72e76aed90..cf456b64cb323c3f8ff88cab38319ab344f84c1f 100644
|
| --- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
|
| +++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
|
| @@ -495,6 +495,7 @@ class Elements {
|
| /// A `compareTo` function that places [Element]s in a consistent order based
|
| /// on the source code order.
|
| static int compareByPosition(Element a, Element b) {
|
| + if (identical(a, b)) return 0;
|
| int r = a.getLibrary().compareTo(b.getLibrary());
|
| if (r != 0) return r;
|
| r = a.getCompilationUnit().compareTo(b.getCompilationUnit());
|
|
|