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 analysis_server.src.services.correction.fix_internal; | 5 library analysis_server.src.services.correction.fix_internal; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 import 'dart:core'; | 9 import 'dart:core'; |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 import 'package:analyzer/src/dart/element/member.dart'; | 39 import 'package:analyzer/src/dart/element/member.dart'; |
40 import 'package:analyzer/src/dart/element/type.dart'; | 40 import 'package:analyzer/src/dart/element/type.dart'; |
41 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; | 41 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; |
42 import 'package:analyzer/src/error/codes.dart'; | 42 import 'package:analyzer/src/error/codes.dart'; |
43 import 'package:analyzer/src/generated/engine.dart'; | 43 import 'package:analyzer/src/generated/engine.dart'; |
44 import 'package:analyzer/src/generated/error_verifier.dart'; | 44 import 'package:analyzer/src/generated/error_verifier.dart'; |
45 import 'package:analyzer/src/generated/java_core.dart'; | 45 import 'package:analyzer/src/generated/java_core.dart'; |
46 import 'package:analyzer/src/generated/parser.dart'; | 46 import 'package:analyzer/src/generated/parser.dart'; |
47 import 'package:analyzer/src/generated/source.dart'; | 47 import 'package:analyzer/src/generated/source.dart'; |
48 import 'package:analyzer/src/generated/utilities_dart.dart'; | 48 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 49 import 'package:analyzer_plugin/src/utilities/string_utilities.dart'; |
49 import 'package:analyzer_plugin/utilities/range_factory.dart'; | 50 import 'package:analyzer_plugin/utilities/range_factory.dart'; |
50 import 'package:path/path.dart'; | 51 import 'package:path/path.dart'; |
51 | 52 |
52 /** | 53 /** |
53 * A predicate is a one-argument function that returns a boolean value. | 54 * A predicate is a one-argument function that returns a boolean value. |
54 */ | 55 */ |
55 typedef bool ElementPredicate(Element argument); | 56 typedef bool ElementPredicate(Element argument); |
56 | 57 |
57 /** | 58 /** |
58 * The implementation of [DartFixContext]. | 59 * The implementation of [DartFixContext]. |
(...skipping 3203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3262 } | 3263 } |
3263 } | 3264 } |
3264 } | 3265 } |
3265 | 3266 |
3266 void _updateList(Iterable<Element> elements) { | 3267 void _updateList(Iterable<Element> elements) { |
3267 for (Element element in elements) { | 3268 for (Element element in elements) { |
3268 _update(element); | 3269 _update(element); |
3269 } | 3270 } |
3270 } | 3271 } |
3271 } | 3272 } |
OLD | NEW |