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

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

Issue 2688513003: Update ChangeBuilder to the new driver (Closed)
Patch Set: addressed comments Created 3 years, 10 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 library analysis_server.plugin.edit.utilities.change_builder_dart;
6
7 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';
8 import 'package:analysis_server/src/utilities/change_builder_dart.dart'; 6 import 'package:analysis_server/src/utilities/change_builder_dart.dart';
9 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/element/element.dart'; 8 import 'package:analyzer/dart/element/element.dart';
11 import 'package:analyzer/dart/element/type.dart'; 9 import 'package:analyzer/dart/element/type.dart';
12 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/dart/analysis/driver.dart';
13 11
14 /** 12 /**
15 * A [ChangeBuilder] used to build changes in Dart files. 13 * A [ChangeBuilder] used to build changes in Dart files.
16 * 14 *
17 * Clients may not extend, implement or mix-in this class. 15 * Clients may not extend, implement or mix-in this class.
18 */ 16 */
19 abstract class DartChangeBuilder extends ChangeBuilder { 17 abstract class DartChangeBuilder extends ChangeBuilder {
20 /** 18 /**
21 * Initialize a newly created change builder. 19 * Initialize a newly created change builder.
22 */ 20 */
23 factory DartChangeBuilder(AnalysisContext context) = DartChangeBuilderImpl; 21 factory DartChangeBuilder(AnalysisDriver driver) = DartChangeBuilderImpl;
24 } 22 }
25 23
26 /** 24 /**
27 * An [EditBuilder] used to build edits in Dart files. 25 * An [EditBuilder] used to build edits in Dart files.
28 * 26 *
29 * Clients may not extend, implement or mix-in this class. 27 * Clients may not extend, implement or mix-in this class.
30 */ 28 */
31 abstract class DartEditBuilder extends EditBuilder { 29 abstract class DartEditBuilder extends EditBuilder {
32 /** 30 /**
33 * The group-id used for the name of a declaration. 31 * The group-id used for the name of a declaration.
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 String groupName, 146 String groupName,
149 bool required: false}); 147 bool required: false});
150 } 148 }
151 149
152 /** 150 /**
153 * A [FileEditBuilder] used to build edits for Dart files. 151 * A [FileEditBuilder] used to build edits for Dart files.
154 * 152 *
155 * Clients may not extend, implement or mix-in this class. 153 * Clients may not extend, implement or mix-in this class.
156 */ 154 */
157 abstract class DartFileEditBuilder extends FileEditBuilder {} 155 abstract class DartFileEditBuilder extends FileEditBuilder {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698