mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 04:16:51 +00:00
832ae6722d
There are two new API methods: `equalityRelationalPattern_end` (for relational patterns using `==` or `!=`, where some degree of flow analysis is warranted) and `nonEqualityRelationalPattern_end` (for all other relational patterns, where all we care about is making sure that both the "matched" and "unmatched" branches are reachable). I've moved most of the logic for constant patterns into `equalityRelationalPattern_end`, since it's essentially the same logic (except that `equalityRelationalPattern_end` also has support for `!=`). So now, `constantPattern_end` simply calls `equalityRelationalPattern_end` in the case where pattern support is enabled. I also had to make a change to `RelationalOperatorResolution` to make it possible to distinguish `==` from `!=`. Bug: https://github.com/dart-lang/sdk/issues/50419 Change-Id: Idc5dbcfb02e3f8b57cfcccb3f46364fe34268ded Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/280900 Reviewed-by: Johnni Winther <johnniwinther@google.com> Commit-Queue: Paul Berry <paulberry@google.com> |
||
---|---|---|
.. | ||
benchmark | ||
lib/src | ||
test | ||
tool | ||
analysis_options.yaml | ||
analysis_options_no_lints.yaml | ||
LICENSE | ||
OWNERS | ||
PRESUBMIT.py | ||
pubspec.yaml | ||
README.md |
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.