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

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

Issue 2866603002: Remove the use of CorrectionUtilities (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/utilities/change_builder_dart.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'package:analysis_server/src/provisional/edit/utilities/change_builder_co re.dart'; 5 import 'package:analysis_server/src/provisional/edit/utilities/change_builder_co re.dart';
6 import 'package:analysis_server/src/utilities/change_builder_dart.dart'; 6 import 'package:analysis_server/src/utilities/change_builder_dart.dart';
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
9 import 'package:analyzer/dart/element/type.dart'; 9 import 'package:analyzer/dart/element/type.dart';
10 import 'package:analyzer/src/dart/analysis/driver.dart'; 10 import 'package:analyzer/src/dart/analysis/driver.dart';
(...skipping 12 matching lines...) Expand all
23 factory DartChangeBuilder(AnalysisDriver driver) = DartChangeBuilderImpl; 23 factory DartChangeBuilder(AnalysisDriver driver) = DartChangeBuilderImpl;
24 } 24 }
25 25
26 /** 26 /**
27 * An [EditBuilder] used to build edits in Dart files. 27 * An [EditBuilder] used to build edits in Dart files.
28 * 28 *
29 * Clients may not extend, implement or mix-in this class. 29 * Clients may not extend, implement or mix-in this class.
30 */ 30 */
31 abstract class DartEditBuilder extends EditBuilder { 31 abstract class DartEditBuilder extends EditBuilder {
32 /** 32 /**
33 * The edits in this builder will be inside the class with the given
34 * [element].
35 *
36 * TODO(brianwilkerson) Remove this method.
37 */
38 void set targetClassElement(ClassElement element);
39
40 /**
41 * Write the code for a declaration of a class with the given [name]. If a 33 * Write the code for a declaration of a class with the given [name]. If a
42 * list of [interfaces] is provided, then the class will implement those 34 * list of [interfaces] is provided, then the class will implement those
43 * interfaces. If [isAbstract] is `true`, then the class will be abstract. If 35 * interfaces. If [isAbstract] is `true`, then the class will be abstract. If
44 * a [memberWriter] is provided, then it will be invoked to allow members to 36 * a [memberWriter] is provided, then it will be invoked to allow members to
45 * be generated. (The members will automatically be preceded and followed by 37 * be generated. (The members will automatically be preceded and followed by
46 * end-of-line markers.) If a list of [mixins] is provided, then the class 38 * end-of-line markers.) If a list of [mixins] is provided, then the class
47 * will mix in those classes. If a [nameGroupName] is provided, then the name 39 * will mix in those classes. If a [nameGroupName] is provided, then the name
48 * of the class will be included in the linked edit group with that name. If a 40 * of the class will be included in the linked edit group with that name. If a
49 * [superclass] is given then it will be the superclass of the class. (If a 41 * [superclass] is given then it will be the superclass of the class. (If a
50 * list of [mixins] is provided but no [superclass] is given then the class 42 * list of [mixins] is provided but no [superclass] is given then the class
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 * 262 *
271 * Clients may not extend, implement or mix-in this class. 263 * Clients may not extend, implement or mix-in this class.
272 */ 264 */
273 abstract class DartLinkedEditBuilder extends LinkedEditBuilder { 265 abstract class DartLinkedEditBuilder extends LinkedEditBuilder {
274 /** 266 /**
275 * Add the given [type] and all of its supertypes (other than mixins) as 267 * Add the given [type] and all of its supertypes (other than mixins) as
276 * suggestions for the current linked edit group. 268 * suggestions for the current linked edit group.
277 */ 269 */
278 void addSuperTypesAsSuggestions(DartType type); 270 void addSuperTypesAsSuggestions(DartType type);
279 } 271 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/utilities/change_builder_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698