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

Unified Diff: sdk/lib/_internal/compiler/implementation/closure.dart

Issue 12377081: Register instantiated types instead of instantiated classes in the resolver. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Small bugfix: use the raw type if no type argument is given. Created 7 years, 10 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 | sdk/lib/_internal/compiler/implementation/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/closure.dart
diff --git a/sdk/lib/_internal/compiler/implementation/closure.dart b/sdk/lib/_internal/compiler/implementation/closure.dart
index 5492bd9525e76f882a42f5484fc0e61515b9dbe9..fa0d0479d92ba2a3eb7531d934a85b6b995e4a3c 100644
--- a/sdk/lib/_internal/compiler/implementation/closure.dart
+++ b/sdk/lib/_internal/compiler/implementation/closure.dart
@@ -80,6 +80,9 @@ class ClosureFieldElement extends ElementX {
}
class ClosureClassElement extends ClassElementX {
+ DartType rawType;
+ DartType thisType;
+
ClosureClassElement(SourceString name,
Compiler compiler,
this.methodElement,
@@ -95,6 +98,7 @@ class ClosureClassElement extends ClassElementX {
supertype = compiler.closureClass.computeType(compiler);
interfaces = const Link<DartType>();
allSupertypes = const Link<DartType>().prepend(supertype);
+ thisType = rawType = new InterfaceType(this);
}
bool isClosure() => true;
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698