OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 services.src.refactoring.organize_directives; | 5 library services.src.refactoring.organize_directives; |
6 | 6 |
7 import 'package:analysis_server/plugin/protocol/protocol.dart' | 7 import 'package:analysis_server/plugin/protocol/protocol.dart' |
8 hide AnalysisError, Element; | 8 hide AnalysisError, Element; |
9 import 'package:analysis_server/src/services/correction/strings.dart'; | 9 import 'package:analysis_server/src/services/correction/strings.dart'; |
10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
11 import 'package:analyzer/dart/ast/token.dart'; | 11 import 'package:analyzer/dart/ast/token.dart'; |
12 import 'package:analyzer/src/generated/error.dart'; | 12 import 'package:analyzer/error/error.dart'; |
| 13 import 'package:analyzer/src/error/codes.dart'; |
13 | 14 |
14 /** | 15 /** |
15 * Organizer of directives in the [unit]. | 16 * Organizer of directives in the [unit]. |
16 */ | 17 */ |
17 class DirectiveOrganizer { | 18 class DirectiveOrganizer { |
18 final String initialCode; | 19 final String initialCode; |
19 final CompilationUnit unit; | 20 final CompilationUnit unit; |
20 final List<AnalysisError> errors; | 21 final List<AnalysisError> errors; |
21 final bool removeUnresolved; | 22 final bool removeUnresolved; |
22 final bool removeUnused; | 23 final bool removeUnused; |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 static const PART = const _DirectivePriority('PART', 8); | 243 static const PART = const _DirectivePriority('PART', 8); |
243 | 244 |
244 final String name; | 245 final String name; |
245 final int ordinal; | 246 final int ordinal; |
246 | 247 |
247 const _DirectivePriority(this.name, this.ordinal); | 248 const _DirectivePriority(this.name, this.ordinal); |
248 | 249 |
249 @override | 250 @override |
250 String toString() => name; | 251 String toString() => name; |
251 } | 252 } |
OLD | NEW |