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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart

Issue 11413219: Canonicalize raw type (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comment Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
index 63e14f98b8b68d83ea3b786189df6a695c5516bf..93262f8a178fce7b3124af69a839a76a986a2954 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/placeholder_collector.dart
@@ -174,14 +174,14 @@ class PlaceholderCollector extends Visitor {
void collectFunctionDeclarationPlaceholders(
FunctionElement element, FunctionExpression node) {
if (element.isGenerativeConstructor() || element.isFactoryConstructor()) {
- DartType type = element.getEnclosingClass().type.asRaw();
+ DartType type = element.getEnclosingClass().thisType.asRaw();
makeConstructorPlaceholder(node.name, element, type);
Return bodyAsReturn = node.body.asReturn();
if (bodyAsReturn != null && bodyAsReturn.isRedirectingFactoryBody) {
// Factory redirection.
FunctionElement redirectTarget = element.defaultImplementation;
assert(redirectTarget != null && redirectTarget != element);
- type = redirectTarget.getEnclosingClass().type.asRaw();
+ type = redirectTarget.getEnclosingClass().thisType.asRaw();
makeConstructorPlaceholder(
bodyAsReturn.expression, redirectTarget, type);
}

Powered by Google App Engine
This is Rietveld 408576698