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 caaa5a89e218639e21e5b6a5d77b9c6ecd5ffa75..96971cbe11dc6b0a9fe46f6f56627278464e2530 100644 |
--- a/pkg/analyzer/lib/src/generated/static_type_analyzer.dart |
+++ b/pkg/analyzer/lib/src/generated/static_type_analyzer.dart |
@@ -2,18 +2,17 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-library engine.resolver.static_type_analyzer; |
+library analyzer.src.generated.static_type_analyzer; |
import 'dart:collection'; |
+import 'package:analyzer/src/generated/ast.dart'; |
+import 'package:analyzer/src/generated/element.dart'; |
+import 'package:analyzer/src/generated/java_engine.dart'; |
+import 'package:analyzer/src/generated/resolver.dart'; |
import 'package:analyzer/src/generated/scanner.dart'; |
- |
-import 'ast.dart'; |
-import 'element.dart'; |
-import 'java_engine.dart'; |
-import 'resolver.dart'; |
-import 'scanner.dart' as sc; |
-import 'utilities_dart.dart'; |
+import 'package:analyzer/src/generated/scanner.dart' as sc; |
+import 'package:analyzer/src/generated/utilities_dart.dart'; |
/** |
* Instances of the class `StaticTypeAnalyzer` perform two type-related tasks. First, they |
@@ -1976,7 +1975,8 @@ class StaticTypeAnalyzer extends SimpleAstVisitor<Object> { |
* Return `true` if the given [Type] is the `Future` form the 'dart:async' |
* library. |
*/ |
- bool _isAsyncFutureType(DartType type) => type is InterfaceType && |
+ bool _isAsyncFutureType(DartType type) => |
+ type is InterfaceType && |
type.name == "Future" && |
_isAsyncLibrary(type.element.library); |