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

Unified Diff: pkg/analyzer_plugin/lib/src/utilities/fixes/fixes.dart

Issue 2953093002: Update the plugin API (Closed)
Patch Set: Update FixesRequest Created 3 years, 6 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
Index: pkg/analyzer_plugin/lib/src/utilities/fixes/fixes.dart
diff --git a/pkg/analyzer_plugin/lib/src/utilities/fixes/fixes.dart b/pkg/analyzer_plugin/lib/src/utilities/fixes/fixes.dart
index 8c95eac2a4cc15856b74aca4933d8b6ad329b8bf..9fe9db411cb6c6f364bc20965bcb07a9cdc7f3c7 100644
--- a/pkg/analyzer_plugin/lib/src/utilities/fixes/fixes.dart
+++ b/pkg/analyzer_plugin/lib/src/utilities/fixes/fixes.dart
@@ -10,6 +10,29 @@ import 'package:analyzer_plugin/utilities/analyzer_converter.dart';
import 'package:analyzer_plugin/utilities/fixes/fixes.dart';
/**
+ * A concrete implementation of [DartFixesRequest].
+ */
+class DartFixesRequestImpl implements DartFixesRequest {
+ @override
+ final ResourceProvider resourceProvider;
+
+ @override
+ final int offset;
+
+ @override
+ final List<AnalysisError> errorsToFix;
+
+ @override
+ final ResolveResult result;
+
+ /**
+ * Initialize a newly create request with the given data.
+ */
+ DartFixesRequestImpl(
+ this.resourceProvider, this.offset, this.errorsToFix, this.result);
+}
+
+/**
* A concrete implementation of [FixCollector].
*/
class FixCollectorImpl implements FixCollector {
@@ -37,25 +60,3 @@ class FixCollectorImpl implements FixCollector {
fixMap.putIfAbsent(error, () => <PrioritizedSourceChange>[]).add(change);
}
}
-
-/**
- * A concrete implementation of [FixesRequest].
- */
-class FixesRequestImpl implements FixesRequest {
- @override
- AnalysisError error;
-
- @override
- final ResourceProvider resourceProvider;
-
- @override
- final int offset;
-
- @override
- final ResolveResult result;
-
- /**
- * Initialize a newly create request with the given data.
- */
- FixesRequestImpl(this.resourceProvider, this.offset, this.result);
-}

Powered by Google App Engine
This is Rietveld 408576698