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

Unified Diff: pkg/analysis_server/lib/src/search/type_hierarchy.dart

Issue 1852113002: More strong mode changes in analysis_server (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 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
Index: pkg/analysis_server/lib/src/search/type_hierarchy.dart
diff --git a/pkg/analysis_server/lib/src/search/type_hierarchy.dart b/pkg/analysis_server/lib/src/search/type_hierarchy.dart
index e723722c793133c6c09e58a9ed78eec1531dd7c8..29af16ef4f4dbd46af2b5c59fe8c46f9fc3fdb27 100644
--- a/pkg/analysis_server/lib/src/search/type_hierarchy.dart
+++ b/pkg/analysis_server/lib/src/search/type_hierarchy.dart
@@ -53,15 +53,14 @@ class TypeHierarchyComputer {
/**
* Returns the computed type hierarchy, maybe `null`.
*/
- Future<List<TypeHierarchyItem>> compute() {
+ Future<List<TypeHierarchyItem>> compute() async {
if (_pivotClass != null) {
InterfaceType type = _pivotClass.type;
_createSuperItem(type);
- return _createSubclasses(_items[0], 0, type).then((_) {
- return new Future.value(_items);
- });
+ await _createSubclasses(_items[0], 0, type);
+ return _items;
}
- return new Future.value(null);
+ return null;
}
/**

Powered by Google App Engine
This is Rietveld 408576698