[ffi] Update some FfiNative docs to Native

The old FfiNatives have been deprecated for a while.

TEST=Only comments updated.

Change-Id: Ideb6e904841e5162d30df479e83b463b94682afe
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/332780
Auto-Submit: Daco Harkes <dacoharkes@google.com>
Reviewed-by: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Alexander Markov <alexmarkov@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
This commit is contained in:
Daco Harkes 2023-10-30 18:43:14 +00:00 committed by Commit Queue
parent 2cc328db0b
commit f5983e4214
2 changed files with 2 additions and 2 deletions

View file

@ -172,7 +172,7 @@ class VmTarget extends Target {
transitiveImportingDartFfi, diagnosticReporter, referenceFromIndex);
logger?.call("Transformed ffi annotations");
// Transform @FfiNative(..) functions into FFI native call functions.
// Transform @Native(..) functions into FFI native call functions.
// Pass instance method receivers as implicit first argument to the static
// native function.
// Transform arguments that extend NativeFieldWrapperClass1 to Pointer if

View file

@ -3343,7 +3343,7 @@ DART_EXPORT Dart_Handle Dart_GetNativeSymbol(Dart_Handle library,
/**
* Sets the callback used to resolve FFI native functions for a library.
* The resolved functions are expected to be a C function pointer of the
* correct signature (as specified in the `@FfiNative<NFT>()` function
* correct signature (as specified in the `@Native<NFT>()` function
* annotation in Dart code).
*
* NOTE: This is an experimental feature and might change in the future.