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

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

Issue 1355893003: Rewire DDC to use the analyzer task model (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Fix for identifiers 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
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;
}

Powered by Google App Engine
This is Rietveld 408576698