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); |