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

Unified Diff: lib/compiler/implementation/elements/elements.dart

Issue 10232011: Implement simple dynamic type check. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minor edits. Created 8 years, 8 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/elements/elements.dart
diff --git a/lib/compiler/implementation/elements/elements.dart b/lib/compiler/implementation/elements/elements.dart
index e96db49c907d6d2635a90ce8f1b9dd1fc3a8306e..734b911932bb3551eb33909957a76de027d69aca 100644
--- a/lib/compiler/implementation/elements/elements.dart
+++ b/lib/compiler/implementation/elements/elements.dart
@@ -688,7 +688,7 @@ class ClassElement extends ContainerElement {
Map<SourceString, Element> localMembers;
Map<SourceString, Element> constructors;
Link<Type> interfaces = const EmptyLink<Type>();
- Map<SourceString, TypeVariableElement> typeParameters;
+ LinkedHashMap<SourceString, TypeVariableElement> typeParameters;
bool isResolved = false;
bool isBeingResolved = false;
// backendMembers are members that have been added by the backend to simplify
@@ -700,7 +700,7 @@ class ClassElement extends ContainerElement {
ClassElement(SourceString name, CompilationUnitElement enclosing)
: localMembers = new Map<SourceString, Element>(),
constructors = new Map<SourceString, Element>(),
- typeParameters = new Map<SourceString, TypeVariableElement>(),
+ typeParameters = new LinkedHashMap<SourceString, TypeVariableElement>(),
super(name, ElementKind.CLASS, enclosing);
void addMember(Element element, DiagnosticListener listener) {

Powered by Google App Engine
This is Rietveld 408576698