809d8a778a
We still have `late ResolvedUnitResultImpl result` for now, but many tests migrated to explicit `TestResolvedUnitResult` and its getters. Start migrating analyzer resolution tests away from the implicit ResolutionTest state. Store the TestResolvedUnitResult returned by resolve helpers in local variables, then read nodes and elements through that result. Update helper methods to take the resolved result explicitly when they need access to findNode or findElement. Also return resolved results from small wrapper helpers so their callers do not have to depend on shared state. This keeps each test tied to the unit it resolved and prepares the test harness for removing the remaining stored resolution result. Change-Id: I5e9331fb574d962473e5d36922107f674d7340cc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/505621 SLSA-Policy-Verified: SLSA Policy Verification Service <devtools-gerritcodereview-exitgate@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Konstantin Shcheglov <scheglov@google.com>