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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java

Issue 513563002: Fix Issue 18628 by refixing Issue 18468 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java
index 9c348d57152d002d3897c2443d240258a3f30764..8d0f8eeea4332762f116c232e6e282a61a2f76a0 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/resolver/StaticTypeAnalyzer.java
@@ -1270,11 +1270,7 @@ public class StaticTypeAnalyzer extends SimpleAstVisitor<Void> {
} else if (element instanceof ExecutableElement) {
staticType = ((ExecutableElement) element).getType();
} else if (element instanceof TypeParameterElement) {
-// if (isTypeName(node)) {
- staticType = ((TypeParameterElement) element).getType();
-// } else {
-// type = typeProvider.getTypeType());
-// }
+ staticType = typeProvider.getTypeType();
Brian Wilkerson 2014/08/27 07:42:41 This seems like a very drastic change, and I'm sur
Nathan Collins 2014/08/27 17:42:33 Can you explain why this *is not* the obvious solu
karlklose 2014/08/28 06:54:38 As I pointed out in the review of the original cha
Nathan Collins 2014/08/28 22:23:17 I don't understand what the "special method (rawTy
karlklose 2014/08/29 08:01:09 The code you replaced referred to the "type of the
} else if (element instanceof VariableElement) {
VariableElement variable = (VariableElement) element;
staticType = promoteManager.getStaticType(variable);

Powered by Google App Engine
This is Rietveld 408576698