1b075fb407
The "mini_types" representation (used for unit testing of shared flow analysis and type analysis code) is reworked so that it represents nullabilities in the same way as the analyzer (and in a more similar way to the CFE), namely: each type has a field `nullabilitySuffix` indicating whether the type is followed by `?`, `*`, or neither. This change ensures that `is` and `as` tests using the mini_types representation (e.g. `is FunctionType`) will behave the same way as they ehave in the analyzer and CFE; this in turn should lead to additional opportunities to share code between the analyzer and CFE. Change-Id: Ia5d963eb96e225e62df71a406d4024053311df88 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/365700 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.