Skip to content

Commit 99ed487

Browse files
committed
Fix a hint in analysis server
Change-Id: I2e6e56b144617d2f061fb1f2d22eb386d395d6c5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107941 Auto-Submit: Brian Wilkerson <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent c3c4368 commit 99ed487

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎pkg/analysis_server/lib/src/services/refactoring/move_file.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ class MoveFileRefactoringImpl extends RefactoringImpl
8989
.where(
9090
(po) => po.uri != null && _isRelativeUri(po.uri.stringValue));
9191
if (partOfs.isNotEmpty) {
92-
await changeBuilder.addFileEdit(result.unit.element.source.fullName,
93-
(builder) {
92+
await changeBuilder.addFileEdit(
93+
result.unit.declaredElement.source.fullName, (builder) {
9494
partOfs.forEach((po) {
9595
final oldDir = pathContext.dirname(oldFile);
9696
final newDir = pathContext.dirname(newFile);

0 commit comments

Comments
 (0)