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 library analysis_server.src.utilities.change_builder_dart; | 5 library analysis_server.src.utilities.change_builder_dart; |
6 | 6 |
7 import 'package:analysis_server/plugin/protocol/protocol.dart' hide ElementKind; | 7 import 'package:analysis_server/plugin/protocol/protocol.dart' hide ElementKind; |
8 import 'package:analysis_server/src/provisional/edit/utilities/change_builder_co
re.dart'; | 8 import 'package:analysis_server/src/provisional/edit/utilities/change_builder_co
re.dart'; |
9 import 'package:analysis_server/src/provisional/edit/utilities/change_builder_da
rt.dart'; | 9 import 'package:analysis_server/src/provisional/edit/utilities/change_builder_da
rt.dart'; |
10 import 'package:analysis_server/src/services/correction/name_suggestion.dart'; | 10 import 'package:analysis_server/src/services/correction/name_suggestion.dart'; |
11 import 'package:analysis_server/src/services/correction/util.dart'; | 11 import 'package:analysis_server/src/services/correction/util.dart'; |
12 import 'package:analysis_server/src/utilities/change_builder_core.dart'; | 12 import 'package:analysis_server/src/utilities/change_builder_core.dart'; |
| 13 import 'package:analyzer/dart/ast/token.dart'; |
13 import 'package:analyzer/dart/element/element.dart'; | 14 import 'package:analyzer/dart/element/element.dart'; |
14 import 'package:analyzer/dart/element/type.dart'; | 15 import 'package:analyzer/dart/element/type.dart'; |
15 import 'package:analyzer/src/generated/ast.dart'; | 16 import 'package:analyzer/src/generated/ast.dart'; |
16 import 'package:analyzer/src/generated/engine.dart'; | 17 import 'package:analyzer/src/generated/engine.dart'; |
17 import 'package:analyzer/src/generated/scanner.dart'; | |
18 import 'package:analyzer/src/generated/source.dart'; | 18 import 'package:analyzer/src/generated/source.dart'; |
19 import 'package:analyzer/src/generated/utilities_dart.dart'; | 19 import 'package:analyzer/src/generated/utilities_dart.dart'; |
20 | 20 |
21 /** | 21 /** |
22 * A [ChangeBuilder] used to build changes in Dart files. | 22 * A [ChangeBuilder] used to build changes in Dart files. |
23 */ | 23 */ |
24 class DartChangeBuilderImpl extends ChangeBuilderImpl | 24 class DartChangeBuilderImpl extends ChangeBuilderImpl |
25 implements DartChangeBuilder { | 25 implements DartChangeBuilder { |
26 /** | 26 /** |
27 * The analysis context in which the files being edited were analyzed. | 27 * The analysis context in which the files being edited were analyzed. |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 } | 478 } |
479 unit = context.resolveCompilationUnit2(source, librariesContaining[0]); | 479 unit = context.resolveCompilationUnit2(source, librariesContaining[0]); |
480 utils = new CorrectionUtils(unit); | 480 utils = new CorrectionUtils(unit); |
481 } | 481 } |
482 | 482 |
483 @override | 483 @override |
484 DartEditBuilderImpl createEditBuilder(int offset, int length) { | 484 DartEditBuilderImpl createEditBuilder(int offset, int length) { |
485 return new DartEditBuilderImpl(this, offset, length); | 485 return new DartEditBuilderImpl(this, offset, length); |
486 } | 486 } |
487 } | 487 } |
OLD | NEW |