Index: lib/src/checker/rules.dart |
diff --git a/lib/src/checker/rules.dart b/lib/src/checker/rules.dart |
index 279a82bcb0dceb58c01a002eefdae32079b3bce3..ee8085989b0a94307f0dbd2e2a572e2ea4a39c5c 100644 |
--- a/lib/src/checker/rules.dart |
+++ b/lib/src/checker/rules.dart |
@@ -199,6 +199,10 @@ class RestrictedRules extends TypeRules { |
DartType getStaticType(Expression expr) { |
var type = expr.staticType; |
if (type != null) return type; |
+ if (expr is SimpleIdentifier) { |
vsm
2015/09/18 23:32:12
Brian / Leaf - any suggestions on the right code h
Jennifer Messerly
2015/09/19 00:18:46
FYI, at least one place this used to happen was th
Jennifer Messerly
2015/09/19 00:23:38
To clarify that:
Given `obj.method(args)`
analyz
Leaf
2015/09/21 17:15:59
I didn't port that line over because I was a littl
Brian Wilkerson
2015/09/24 19:41:01
Seems to me that we should change analyzer to alwa
Leaf
2015/09/24 19:48:21
I think the change on line 633 of this CL https://
Brian Wilkerson
2015/09/24 21:17:48
Yes. I think I made a comment to that effect in th
|
+ type = expr.staticElement?.type; |
+ if (type != null) return type; |
+ } |
if (reportMissingType != null) reportMissingType(expr); |
return provider.dynamicType; |
} |