d74b2f4672
The analyzer and CFE now report a warning on calls to `Pointer<T extends NativeType>.elementAt()` and `sizeOf<T extends NativeType>()` where `T` is a generic. Adapted from https://dart-review.googlesource.com/c/sdk/+/178200 to only deprecate but not error out on generic calls. Does not roll forward `package:ffi` to a version with the `Allocator` but keeps the generic `sizeOf` invocation. This causes extra warnings in the pkg/front_end testcases. Issue: https://github.com/dart-lang/sdk/issues/38721 TEST=tests/ffi/data_test.dart TEST=tests/ffi/sizeof_test.dart TEST=tests/ffi/structs_test.dart TEST=tests/ffi/vmspecific_static_checks_test.dart Change-Id: I8f41c4dc04fc44e7e6c540ba87a3f41604130fe9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/180560 Reviewed-by: Vyacheslav Egorov <vegorov@google.com>