47fac37fce
Replaces the each call to `_expressionEnd(expr, type)` with `_getExpressionInfo(expr) ?? _makeTrivialExpressionInfo(type)`, where `_makeTrivialExpressionInfo` is a new method that creates a so-called "trivial" instance of `ExpressionInfo` based on the current flow state. There is no functional change, since this is precisely what the old `_expressionEnd` method did. However, this paves the way for follow-up CLs that will move the calls to `_getExpressionInfo` from flow analysis out to its clients. Change-Id: I6a6a69649afe226fd948d86473f14aab13e2e7c2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/471763 Reviewed-by: Chloe Stefantsova <cstefantsova@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.