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

Unified Diff: pkg/analysis_services/lib/correction/fix.dart

Issue 418203002: Implement more fixes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_services/lib/correction/change.dart ('k') | pkg/analysis_services/lib/src/correction/fix.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_services/lib/correction/fix.dart
diff --git a/pkg/analysis_services/lib/correction/fix.dart b/pkg/analysis_services/lib/correction/fix.dart
index f1652135254e6e0a3fffdd8e2dc46eff948905b6..eaafa6db1d60ac7048f8a7ff7fa381ca0d774eb7 100644
--- a/pkg/analysis_services/lib/correction/fix.dart
+++ b/pkg/analysis_services/lib/correction/fix.dart
@@ -9,6 +9,7 @@ import 'package:analysis_services/search/search_engine.dart';
import 'package:analysis_services/src/correction/fix.dart';
import 'package:analyzer/src/generated/ast.dart';
import 'package:analyzer/src/generated/error.dart';
+import 'package:analyzer/src/generated/source.dart';
/**
@@ -16,9 +17,11 @@ import 'package:analyzer/src/generated/error.dart';
*
* Returns the computed [Fix]s, not `null`.
*/
-List<Fix> computeFixes(SearchEngine searchEngine, String file,
+List<Fix> computeFixes(SearchEngine searchEngine,
CompilationUnit unit, AnalysisError error) {
- var processor = new FixProcessor(searchEngine, file, unit, error);
+ Source source = unit.element.source;
+ String file = source.fullName;
+ var processor = new FixProcessor(searchEngine, source, file, unit, error);
return processor.compute();
}
« no previous file with comments | « pkg/analysis_services/lib/correction/change.dart ('k') | pkg/analysis_services/lib/src/correction/fix.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698