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

Unified Diff: lib/compiler/implementation/elements/elements.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: Remove (now) unnecessary changes. 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
« no previous file with comments | « no previous file | lib/compiler/implementation/emitter.dart » ('j') | lib/compiler/implementation/emitter.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index 0b9fca1014c852c45d5715f9bc5717251d906b35..c91c5781192683abb2c51f40654425ff6dbd33fd 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -665,6 +665,7 @@ class SynthesizedConstructorElement extends FunctionElement {
}
class ClassElement extends ContainerElement {
+ final int id;
Type type;
Type supertype;
Type defaultClass;
@@ -681,7 +682,7 @@ class ClassElement extends ContainerElement {
Link<Type> allSupertypes;
- ClassElement(SourceString name, CompilationUnitElement enclosing)
+ ClassElement(SourceString name, CompilationUnitElement enclosing, this.id)
: localMembers = new Map<SourceString, Element>(),
constructors = new Map<SourceString, Element>(),
typeParameters = new LinkedHashMap<SourceString, TypeVariableElement>(),
@@ -852,6 +853,7 @@ class ClassElement extends ContainerElement {
bool isInterface() => false;
bool isNative() => nativeName != null;
SourceString nativeName;
+ int hashCode() => id;
}
class Elements {
« no previous file with comments | « no previous file | lib/compiler/implementation/emitter.dart » ('j') | lib/compiler/implementation/emitter.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698