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

Unified Diff: sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart

Issue 141653003: Redo "Make dart2js typed_data implementation classes private" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: suppress analysis errors of dart2js library Created 6 years, 11 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: sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart
index b54ae28c0967fabc99e66163b3a10574b37d50c8..34c9c02211c16aa226ac06369a44b5d947a28ab5 100644
--- a/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart
+++ b/sdk/lib/_internal/compiler/implementation/inferrer/simple_types_inferrer.dart
@@ -977,11 +977,13 @@ class SimpleTypeInferrerVisitor<T>
elementType, length));
} else if (Elements.isConstructorOfTypedArraySubclass(element, compiler)) {
int length = findLength(node);
+ FunctionElement constructor = element;
+ constructor = constructor.redirectionTarget;
T elementType = inferrer.returnTypeOfElement(
- element.getEnclosingClass().lookupMember('[]'));
+ constructor.getEnclosingClass().lookupMember('[]'));
return inferrer.concreteTypes.putIfAbsent(
node, () => types.allocateList(
- types.nonNullExact(element.getEnclosingClass()), node,
+ types.nonNullExact(constructor.getEnclosingClass()), node,
outermostElement, elementType, length));
} else if (element.isFunction() || element.isConstructor()) {
return returnType;

Powered by Google App Engine
This is Rietveld 408576698