c3b30df798
The analyzer and CFE now report a warning on subclasses of `Struct` which have no native fields. Adapted from https://dart-review.googlesource.com/c/sdk/+/180189 to only deprecate, but not disallow empty structs. Rolls `package:ffi` forward to migrate `Utf8` and `Utf16` to `Opaque` to prevent tests from failing on those generating warnings for empty structs. Issue: https://github.com/dart-lang/sdk/issues/43974 TEST=tests/ffi/vmspecific_static_checks_test.dart Change-Id: Ia364e31da66cb195570c2e2b729d03dd261f28a2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180361 Reviewed-by: Clement Skau <cskau@google.com> Reviewed-by: Vyacheslav Egorov <vegorov@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.