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)); |
} |