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

Side by Side Diff: pkg/analysis_server/lib/src/services/correction/fix_internal.dart

Issue 2962903002: Add support code to make fixes easier in plugins (Closed)
Patch Set: Created 3 years, 5 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) 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:core'; 7 import 'dart:core';
8 8
9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart'; 9 import 'package:analysis_server/plugin/edit/fix/fix_core.dart';
10 import 'package:analysis_server/plugin/edit/fix/fix_dart.dart'; 10 import 'package:analysis_server/plugin/edit/fix/fix_dart.dart';
(...skipping 26 matching lines...) Expand all
37 import 'package:analyzer/src/generated/error_verifier.dart'; 37 import 'package:analyzer/src/generated/error_verifier.dart';
38 import 'package:analyzer/src/generated/java_core.dart'; 38 import 'package:analyzer/src/generated/java_core.dart';
39 import 'package:analyzer/src/generated/parser.dart'; 39 import 'package:analyzer/src/generated/parser.dart';
40 import 'package:analyzer/src/generated/resolver.dart'; 40 import 'package:analyzer/src/generated/resolver.dart';
41 import 'package:analyzer/src/generated/source.dart'; 41 import 'package:analyzer/src/generated/source.dart';
42 import 'package:analyzer/src/generated/utilities_dart.dart'; 42 import 'package:analyzer/src/generated/utilities_dart.dart';
43 import 'package:analyzer_plugin/protocol/protocol_common.dart' 43 import 'package:analyzer_plugin/protocol/protocol_common.dart'
44 hide AnalysisError, Element, ElementKind; 44 hide AnalysisError, Element, ElementKind;
45 import 'package:analyzer_plugin/src/utilities/string_utilities.dart'; 45 import 'package:analyzer_plugin/src/utilities/string_utilities.dart';
46 import 'package:analyzer_plugin/utilities/change_builder/change_builder_dart.dar t'; 46 import 'package:analyzer_plugin/utilities/change_builder/change_builder_dart.dar t';
47 import 'package:analyzer_plugin/utilities/fixes/fixes.dart' hide FixContributor;
47 import 'package:analyzer_plugin/utilities/range_factory.dart'; 48 import 'package:analyzer_plugin/utilities/range_factory.dart';
48 import 'package:path/path.dart'; 49 import 'package:path/path.dart';
49 50
50 /** 51 /**
51 * A predicate is a one-argument function that returns a boolean value. 52 * A predicate is a one-argument function that returns a boolean value.
52 */ 53 */
53 typedef bool ElementPredicate(Element argument); 54 typedef bool ElementPredicate(Element argument);
54 55
55 /** 56 /**
56 * The implementation of [DartFixContext]. 57 * The implementation of [DartFixContext].
(...skipping 3157 matching lines...) Expand 10 before | Expand all | Expand 10 after
3214 } 3215 }
3215 } 3216 }
3216 } 3217 }
3217 3218
3218 void _updateList(Iterable<Element> elements) { 3219 void _updateList(Iterable<Element> elements) {
3219 for (Element element in elements) { 3220 for (Element element in elements) {
3220 _update(element); 3221 _update(element);
3221 } 3222 }
3222 } 3223 }
3223 } 3224 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix.dart ('k') | pkg/analysis_server/test/services/correction/fix_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698