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

Unified Diff: pkg/analysis_server/lib/edit/fix/fix_core.dart

Issue 1253103007: WEB-17598. Name new libraries according to the Dart Style Guide. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analysis_server/lib/edit/fix/fix_dart.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/edit/fix/fix_core.dart
diff --git a/pkg/analysis_server/lib/edit/fix/fix_core.dart b/pkg/analysis_server/lib/edit/fix/fix_core.dart
index f546198da0c824de87a2901b86b370fe6858e89f..f38d59a8eeca703180816908a67d8266c20ecd84 100644
--- a/pkg/analysis_server/lib/edit/fix/fix_core.dart
+++ b/pkg/analysis_server/lib/edit/fix/fix_core.dart
@@ -5,6 +5,7 @@
library analysis_server.edit.fix.fix_core;
import 'package:analysis_server/src/protocol.dart' show SourceChange;
+import 'package:analyzer/file_system/file_system.dart';
import 'package:analyzer/src/generated/engine.dart';
import 'package:analyzer/src/generated/error.dart';
@@ -24,7 +25,8 @@ class Fix {
* relevant fixes will be sorted before fixes with a lower relevance.
*/
static final Comparator<Fix> SORT_BY_RELEVANCE = (Fix firstFix,
- Fix secondFix) => firstFix.kind.relevance - secondFix.kind.relevance;
+ Fix secondFix) =>
+ firstFix.kind.relevance - secondFix.kind.relevance;
/**
* A description of the fix being proposed.
@@ -59,7 +61,8 @@ abstract class FixContributor {
* Return a list of fixes for the given [error]. The error was reported
* after it's source was analyzed in the given [context].
*/
- List<Fix> computeFixes(AnalysisContext context, AnalysisError error);
+ List<Fix> computeFixes(ResourceProvider resourceProvider,
+ AnalysisContext context, AnalysisError error);
}
/**
« no previous file with comments | « no previous file | pkg/analysis_server/lib/edit/fix/fix_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698