Commit 214a98e
[flow analysis] clean up public methods that call other public methods.
In a future CL, I plan to introduce some state tracking logic at the
top of each public method in `FlowAnalysisImpl` to verify that the
caller invokes flow analysis API methods in an order that respects
some important invariants. When I do that, it will be confusing if
there are some public methods in `FlowAnalysisImpl` that call other
public methods.
So, to avoid confusion in that future CL, this CL refactors the public
methods `lateInitializer_end` and `functionExpression_end` (which are
functionally equivalent) so that they call a common private method,
rather than one calling the other. Similarly, it refactors the public
methods `parenthesizedExpression` and `forwardExpression` (which are
functionally equivalent) so that they call a common private method,
rather than one calling the other.
Change-Id: I7b6d23f2db409c652575beb73bba2ea11b0fa90b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/303200
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>1 parent d7fc9ca commit 214a98e
File tree
1 file changed
+19
-11
lines changed1 file changed
+19
-11
lines changedLines changed: 19 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4020 | 4020 | | |
4021 | 4021 | | |
4022 | 4022 | | |
4023 | | - | |
4024 | | - | |
4025 | | - | |
4026 | | - | |
4027 | | - | |
4028 | | - | |
| 4023 | + | |
4029 | 4024 | | |
4030 | 4025 | | |
4031 | 4026 | | |
| |||
4041 | 4036 | | |
4042 | 4037 | | |
4043 | 4038 | | |
4044 | | - | |
4045 | | - | |
4046 | | - | |
| 4039 | + | |
4047 | 4040 | | |
4048 | 4041 | | |
4049 | 4042 | | |
| |||
4264 | 4257 | | |
4265 | 4258 | | |
4266 | 4259 | | |
4267 | | - | |
| 4260 | + | |
4268 | 4261 | | |
4269 | 4262 | | |
4270 | 4263 | | |
| |||
4423 | 4416 | | |
4424 | 4417 | | |
4425 | 4418 | | |
4426 | | - | |
| 4419 | + | |
4427 | 4420 | | |
4428 | 4421 | | |
4429 | 4422 | | |
| |||
4917 | 4910 | | |
4918 | 4911 | | |
4919 | 4912 | | |
| 4913 | + | |
| 4914 | + | |
| 4915 | + | |
| 4916 | + | |
| 4917 | + | |
| 4918 | + | |
| 4919 | + | |
| 4920 | + | |
| 4921 | + | |
| 4922 | + | |
| 4923 | + | |
| 4924 | + | |
| 4925 | + | |
| 4926 | + | |
| 4927 | + | |
4920 | 4928 | | |
4921 | 4929 | | |
4922 | 4930 | | |
| |||
0 commit comments