d3c0a3768b
Previously, the mini_ast used for flow analysis testing simulated prefix increment/decrement operations using a `Write` node with a null right-hand side. This commit introduces a dedicated `PreIncDec` node to represent these operations more accurately. The test "write() permits expression to be null" is removed in favor of two new tests: - "preIncDec() stores expressionInfo in the write" - "preIncDec() demotes to the written type" These new tests parallel the corresponding tests that already exist for postIncDec. Change-Id: I6a6a69646c63ca1c605272d4170eae3729ce90e1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/482560 Reviewed-by: Konstantin Shcheglov <scheglov@google.com> Commit-Queue: Paul Berry <paulberry@google.com>
FE/analyzer shared code
This package contains logic that is shared between the front_end and analyzer packages. It is intended solely to facilitate development of the Dart SDK, and is not intended for use by end users. In particular, this package has no public API, so no guarantee is made of compatibility between one version of the package and the next.
End users should consider using the analyzer package to analyze Dart source code.