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

Unified Diff: pkg/analysis_server/lib/src/services/correction/util.dart

Issue 2138843002: 'Import library' fixes should use the same 'addLibraryImports' implementation as the fixes where im… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/correction/util.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/util.dart b/pkg/analysis_server/lib/src/services/correction/util.dart
index 551964a7f249534dbed011042d0b2eabbb64a250..638bfa074b66459d091abb39fc0ca1388ae0661e 100644
--- a/pkg/analysis_server/lib/src/services/correction/util.dart
+++ b/pkg/analysis_server/lib/src/services/correction/util.dart
@@ -61,8 +61,8 @@ void addLibraryImports(SourceChange change, LibraryElement targetLibrary,
}
// insert imports
for (LibraryElement library in libraries) {
- String importPath = getLibrarySourceUri(targetLibrary, library.source);
- String importCode = "${prefix}import '$importPath';$suffix";
+ String importUri = getLibrarySourceUri(targetLibrary, library.source);
+ String importCode = "${prefix}import '$importUri';$suffix";
doSourceChange_addElementEdit(
change, targetLibrary, new SourceEdit(offset, 0, importCode));
}
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/fix_internal.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698