Refactorings run with multiple AnalysisContext(s) and sessions.

If we use just the session that produced the resolved unit, we will
not update other packages for example.

I tried to apply a refactoring to `LanguageVersionImpl` from `_fe_analyzer_shared`, and it did not update `analyzer`. With this change it does update :-)

Change-Id: I47fc28b4adba59c8e025e1bfe17490e4038d28ba
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/310973
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Konstantin Shcheglov <scheglov@google.com>

https://dart.googlesource.com/sdk/+/9b3e36bbdc984cbf59952be6250625345b9ded65
1 file changed
tree: cd3a201fd14840d13f0f6306244587c937bdbedc
  1. commits.json