a900531934
We regularly get FileSystemException(s) like: at _PhysicalFile.readAsStringSync (physical_file_system.dart:184) at _OverlayFile.readAsStringSync (overlay_file_system.dart:206) at FileSource.contentsFromFile (source_resource.dart:68) at FileSource.contents (source_resource.dart:55) at MoveFileRefactoringImpl._isPackageReference (move_file.dart:183) So, instead we could use already recorded source content from which the element model was built. Alternatively we could record different kinds of references into the index, e.g. IS_REFERENCED_BY_PACKAGE_URI or IS_REFERENCED_BY. Change-Id: Ic4aa839f706f37c9df2504f866dfca7c7581c347 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212860 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>