a3f5cfdc7f
This change ensure that if the user makes an erroneous switch expression by imitating the syntax of case statements (i.e. using `case`, `default`, `:` instead of `=>`, or `;` instead of `,`), error recovery will understand the user's intent, avoiding follow-on errors. Fixes #51886. Bug: https://github.com/dart-lang/sdk/issues/51886, https://github.com/dart-lang/sdk/issues/51943 Change-Id: Icd405d4fd4ddfb1aadcf0867e5a51ba898d4cdbc Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/293200 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.