mirror of
https://github.com/dart-lang/sdk
synced 2024-10-05 02:29:56 +00:00
998d5f5a9b
- Allows FfiNative annotation to be attached to non-static methods of classes. - Transforms non-static instance methods to static, adding wrappers with the receiver as an extra, implicit first paramters. - Transform all parameters and arguments to Pointer if the object being passed supports it (i.e. extends NativeFieldWrapperClass1). - Adds compile time errors for cases where the FfiNative annotation doesn't align with the annotated function. Taking into account implicit receivers and converted Pointers. - Adds complimentary Analyzer checks for the above errors as well. - Adds tests for the transforms, compile time errors and analyzer changes. TEST=Adds new tests for instance methods, analyzer changes. Change-Id: Idf54430acf2728a650008333b149b254941290ad Cq-Do-Not-Cancel-Tryjobs: true Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/213773 Commit-Queue: Clement Skau <cskau@google.com> Reviewed-by: Martin Kustermann <kustermann@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com> |
||
---|---|---|
.. | ||
deferred_loading | ||
ffi | ||
to_string_transformer | ||
type_flow | ||
unreachable_code_elimination |