Branch: refs/heads/main
Home:
https://github.com/dart-lang/sdk
Commit: c116ea6c55509cd523e44601374bcaa218fa1a09
https://github.com/dart-lang/sdk/commit/c116ea6c55509cd523e44601374bcaa218fa1a09
Author: Paul Berry <
paul...@google.com>
Date: 2026-02-23 (Mon, 23 Feb 2026)
Changed paths:
M pkg/_fe_analyzer_shared/test/mini_ast.dart
Log Message:
-----------
[flow analysis] In tests, improve plumbing of flow analysis info.
Makes the following updates to the mini_ast used for flow analysis
testing:
- When visiting a `Write` node, the flow analysis expression info is
pulled directly from the analysis result of the RHS and passed to
`_visitWrite`, rather than deferring to `_visitWrite` to look it up
using `getFlowAnalysisInfo`.
- When computing the promoted type or the promotion chain of a
`Property` node, the flow analysis expression info is pulled
directly from the analysis result of the target (by
`_computeMemberAndFlowAnalysisInfo`) rather than looking it up using
`getFlowAnalysisInfo`.
- When creating the guard variable for a null-aware property access or
method call, the result of analyzing the target is passed directly
to `createNullAwareGuard`, allowing it to obtain the flow analysis
expression info directly rather than fetching it from
`getFlowAnalysisInfo`. The modified expression info for the
null-checked target is then returned directly back to the caller
using another analysis result, rather than requiring the caller to
look it up using another call to `getFlowAnalysisInfo`.
These changes pave the way for removing the `getFlowAnalysisInfo` and
`storeFlowAnalysisInfo` methods from mini_ast, along with the map they
use for storage.
Change-Id: I6a6a6964d4533c16f622f08b302a7f62c959b58f
Reviewed-on:
https://dart-review.googlesource.com/c/sdk/+/482562
Reviewed-by: Chloe Stefantsova <
cstefa...@google.com>
Commit-Queue: Paul Berry <
paul...@google.com>
To unsubscribe from these emails, change your notification settings at
https://github.com/dart-lang/sdk/settings/notifications