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 1b83ef5b6433a07eb420d5832eb948db48822958..1c7e134d39a819dcd4f7981d18613f45e54b4989 100644 |
--- a/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
+++ b/pkg/analysis_server/lib/src/services/correction/fix_internal.dart |
@@ -923,8 +923,8 @@ class FixProcessor { |
libName = libName.replaceAll('_', '.'); |
SourceEdit edit = new SourceEdit(0, 0, 'library $libName;$eol$eol'); |
doSourceChange_addSourceEdit(change, context, source, edit); |
+ _addFix(DartFixKind.CREATE_FILE, [source.shortName]); |
} |
- _addFix(DartFixKind.CREATE_FILE, [file]); |
} |
} |
} |
@@ -1123,11 +1123,10 @@ class FixProcessor { |
PartDirective partDirective = node.parent; |
Source source = partDirective.source; |
if (source != null) { |
- String file = source.fullName; |
String libName = unitLibraryElement.name; |
SourceEdit edit = new SourceEdit(0, 0, 'part of $libName;$eol$eol'); |
doSourceChange_addSourceEdit(change, context, source, edit); |
- _addFix(DartFixKind.CREATE_FILE, [file]); |
+ _addFix(DartFixKind.CREATE_FILE, [source.shortName]); |
} |
} |
} |