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

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

Issue 19097003: Support new malformed types semantics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittests. Created 7 years, 5 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/types/simple_types_inferrer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
index 62a92252c8c98f803b157cc9fbcfe6df64a72820..5bae1d7211ee68d8457d98f2c1899083ff771ee5 100644
--- a/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
+++ b/sdk/lib/_internal/compiler/implementation/types/simple_types_inferrer.dart
@@ -95,7 +95,7 @@ abstract class TypeInformation {
callers[caller]--;
}
}
-
+
void addAssignment(Node node, TypeMask mask) {
assignments[node] = mask;
}
@@ -997,7 +997,7 @@ class InternalSimpleTypesInferrer
if (isNativeElement(element) && element.isField()) {
if (type == null) {
InterfaceType rawType = element.computeType(compiler).asRaw();
- info.type = type = rawType.isDynamic
+ info.type = type = rawType.treatAsDynamic
? types.dynamicType
: new TypeMask.subtype(rawType);
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/types/inferrer_visitor.dart ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698