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

Unified Diff: pkg/analyzer/lib/src/generated/static_type_analyzer.dart

Issue 1008583002: Fix hints (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/static_type_analyzer.dart
diff --git a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
index 1297a43ed50a41075206faebfe7701c827371628..0e907624c74b0fe23094623b0f1e376c249566db 100644
--- a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
+++ b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart
@@ -892,25 +892,25 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> {
}
if (propagatedElement is ClassElement) {
if (_isNotTypeLiteral(node)) {
- propagatedType = (propagatedElement as ClassElement).type;
+ propagatedType = propagatedElement.type;
} else {
propagatedType = _typeProvider.typeType;
}
} else if (propagatedElement is FunctionTypeAliasElement) {
- propagatedType = (propagatedElement as FunctionTypeAliasElement).type;
+ propagatedType = propagatedElement.type;
} else if (propagatedElement is MethodElement) {
- propagatedType = (propagatedElement as MethodElement).type;
+ propagatedType = propagatedElement.type;
} else if (propagatedElement is PropertyAccessorElement) {
- propagatedType = _getTypeOfProperty(
- propagatedElement as PropertyAccessorElement, node.prefix.staticType);
+ propagatedType =
+ _getTypeOfProperty(propagatedElement, node.prefix.staticType);
propagatedType =
_getPropertyPropagatedType(propagatedElement, propagatedType);
} else if (propagatedElement is ExecutableElement) {
- propagatedType = (propagatedElement as ExecutableElement).type;
+ propagatedType = propagatedElement.type;
} else if (propagatedElement is TypeParameterElement) {
- propagatedType = (propagatedElement as TypeParameterElement).type;
+ propagatedType = propagatedElement.type;
} else if (propagatedElement is VariableElement) {
- propagatedType = (propagatedElement as VariableElement).type;
+ propagatedType = propagatedElement.type;
}
DartType overriddenType = _overrideManager.getType(propagatedElement);
if (propagatedType == null ||
« no previous file with comments | « pkg/analyzer/lib/src/generated/resolver.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698