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

Side by Side Diff: pkg/analysis_server/lib/src/utilities/change_builder_dart.dart

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/utilities/change_builder_core.dart ('k') | pkg/analysis_server/test/analysis/get_errors_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698