OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:analysis_server/plugin/protocol/protocol.dart' | 7 import 'package:analysis_server/protocol/protocol_generated.dart' |
8 hide Element, ElementKind; | 8 hide Element, ElementKind; |
9 import 'package:analysis_server/src/provisional/edit/utilities/change_builder_co
re.dart'; | 9 import 'package:analysis_server/src/provisional/edit/utilities/change_builder_co
re.dart'; |
10 import 'package:analysis_server/src/provisional/edit/utilities/change_builder_da
rt.dart'; | 10 import 'package:analysis_server/src/provisional/edit/utilities/change_builder_da
rt.dart'; |
11 import 'package:analysis_server/src/services/correction/name_suggestion.dart'; | 11 import 'package:analysis_server/src/services/correction/name_suggestion.dart'; |
12 import 'package:analysis_server/src/services/correction/util.dart'; | 12 import 'package:analysis_server/src/services/correction/util.dart'; |
13 import 'package:analysis_server/src/utilities/change_builder_core.dart'; | 13 import 'package:analysis_server/src/utilities/change_builder_core.dart'; |
14 import 'package:analyzer/dart/ast/ast.dart'; | 14 import 'package:analyzer/dart/ast/ast.dart'; |
15 import 'package:analyzer/dart/ast/token.dart'; | 15 import 'package:analyzer/dart/ast/token.dart'; |
16 import 'package:analyzer/dart/element/element.dart'; | 16 import 'package:analyzer/dart/element/element.dart'; |
17 import 'package:analyzer/dart/element/type.dart'; | 17 import 'package:analyzer/dart/element/type.dart'; |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
718 void _addSuperTypesAsSuggestions(DartType type, Set<DartType> alreadyAdded) { | 718 void _addSuperTypesAsSuggestions(DartType type, Set<DartType> alreadyAdded) { |
719 if (type is InterfaceType && alreadyAdded.add(type)) { | 719 if (type is InterfaceType && alreadyAdded.add(type)) { |
720 addSuggestion(LinkedEditSuggestionKind.TYPE, type.displayName); | 720 addSuggestion(LinkedEditSuggestionKind.TYPE, type.displayName); |
721 _addSuperTypesAsSuggestions(type.superclass, alreadyAdded); | 721 _addSuperTypesAsSuggestions(type.superclass, alreadyAdded); |
722 for (InterfaceType interfaceType in type.interfaces) { | 722 for (InterfaceType interfaceType in type.interfaces) { |
723 _addSuperTypesAsSuggestions(interfaceType, alreadyAdded); | 723 _addSuperTypesAsSuggestions(interfaceType, alreadyAdded); |
724 } | 724 } |
725 } | 725 } |
726 } | 726 } |
727 } | 727 } |
OLD | NEW |