Skip to content

Commit 3d02f6d

Browse files
dcharkesCommit Queue
authored and
Commit Queue
committed
[vm/ffi] Deprecate FfiNative
Bug: #50097 Change-Id: I8d555e27167d13d21d88a2961a0501155119409b CoreLibraryReviewExempt: Isn't used in dart2js, is used in dart2wasm. Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/279514 Commit-Queue: Daco Harkes <[email protected]> Reviewed-by: Aske Simon Christensen <[email protected]>
1 parent 1a6d6f7 commit 3d02f6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sdk/lib/ffi/ffi.dart

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ abstract class NativeApi {
906906
/// Example:
907907
///
908908
/// ```dart template:top
909-
/// @FfiNative<Int64 Function(Int64, Int64)>('FfiNative_Sum', isLeaf:true)
909+
/// @Native<Int64 Function(Int64, Int64)>(symbol: 'FfiNative_Sum', isLeaf:true)
910910
/// external int sum(int a, int b);
911911
/// ```
912912
///
@@ -915,8 +915,9 @@ abstract class NativeApi {
915915
///
916916
/// See `Dart_SetFfiNativeResolver` in `dart_api.h`
917917
///
918-
/// NOTE: This is an experimental feature and may change in the future.
918+
/// NOTE: This experimental feature is replaced by [Native].
919919
@Since('2.14')
920+
@Deprecated('Use Native instead.')
920921
class FfiNative<T> {
921922
final String nativeName;
922923

0 commit comments

Comments
 (0)