Fix a hint in analysis server

Change-Id: I2e6e56b144617d2f061fb1f2d22eb386d395d6c5
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/107941
Auto-Submit: Brian Wilkerson <brianwilkerson@google.com>
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
This commit is contained in:
Brian Wilkerson 2019-07-02 18:50:31 +00:00
parent c3c43689d5
commit 99ed4871b3

View file

@ -89,8 +89,8 @@ class MoveFileRefactoringImpl extends RefactoringImpl
.where(
(po) => po.uri != null && _isRelativeUri(po.uri.stringValue));
if (partOfs.isNotEmpty) {
await changeBuilder.addFileEdit(result.unit.element.source.fullName,
(builder) {
await changeBuilder.addFileEdit(
result.unit.declaredElement.source.fullName, (builder) {
partOfs.forEach((po) {
final oldDir = pathContext.dirname(oldFile);
final newDir = pathContext.dirname(newFile);