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

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

Issue 1281313002: Fix regression in import fixups introduced by .packages support. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Cleaner fix 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/src/services/correction/util.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/correction/fix_internal.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
index 3c8f1a748ee7919649fe89e9d4a93e591ad06179..d1ec86effdc3a706d758a350632b987cd2e1381b 100644
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart
@@ -1438,7 +1438,7 @@ class FixProcessor {
String libraryFile = librarySource.fullName;
// may be "package:" URI
{
- String libraryPackageUri = findAbsoluteUri(context, libraryFile);
+ String libraryPackageUri = findNonFileUri(context, libraryFile);
if (libraryPackageUri != null) {
_addFix_importLibrary(
DartFixKind.IMPORT_LIBRARY_PROJECT, libraryPackageUri);
@@ -1630,7 +1630,7 @@ class FixProcessor {
if (substringAfterLast(libFile, '/') == uriName) {
String fixedUri;
// may be "package:" URI
- String libPackageUri = findAbsoluteUri(context, libFile);
+ String libPackageUri = findNonFileUri(context, libFile);
if (libPackageUri != null) {
fixedUri = libPackageUri;
} else {
« no previous file with comments | « no previous file | pkg/analysis_server/lib/src/services/correction/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698