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

Unified Diff: lib/src/checker/resolver.dart

Issue 1361833002: Screen dynamic invokes to object properties in checker (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Handle object tearoffs better Created 5 years, 3 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 | « lib/src/checker/checker.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/checker/resolver.dart
diff --git a/lib/src/checker/resolver.dart b/lib/src/checker/resolver.dart
index 7a8b671087c4072fa297a31dcfeec1a7daf686f3..fe394fb03e2628b392107bc970357f69e92de348 100644
--- a/lib/src/checker/resolver.dart
+++ b/lib/src/checker/resolver.dart
@@ -696,7 +696,6 @@ class RestrictedStaticTypeAnalyzer extends StaticTypeAnalyzer {
if (type is FunctionType &&
type.parameters.isEmpty &&
node.argumentList.arguments.isEmpty) {
- node.target.staticType = _typeProvider.objectType;
node.methodName.staticType = type;
// Only infer the type of the overall expression if we have an exact
// type - e.g., a sealed type. Otherwise, it may be too strict.
@@ -757,7 +756,6 @@ class RestrictedStaticTypeAnalyzer extends StaticTypeAnalyzer {
if (node.staticType.isDynamic &&
_objectMembers.containsKey(name) &&
isDynamicTarget(target)) {
- target.staticType = _typeProvider.objectType;
var type = _objectMembers[name];
id.staticType = type;
// Only infer the type of the overall expression if we have an exact
« no previous file with comments | « lib/src/checker/checker.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698