mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 15:17:07 +00:00
[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:
parent
2cc328db0b
commit
f5983e4214
2 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ class VmTarget extends Target {
|
||||||
transitiveImportingDartFfi, diagnosticReporter, referenceFromIndex);
|
transitiveImportingDartFfi, diagnosticReporter, referenceFromIndex);
|
||||||
logger?.call("Transformed ffi annotations");
|
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
|
// Pass instance method receivers as implicit first argument to the static
|
||||||
// native function.
|
// native function.
|
||||||
// Transform arguments that extend NativeFieldWrapperClass1 to Pointer if
|
// Transform arguments that extend NativeFieldWrapperClass1 to Pointer if
|
||||||
|
|
|
@ -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.
|
* 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
|
* 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).
|
* annotation in Dart code).
|
||||||
*
|
*
|
||||||
* NOTE: This is an experimental feature and might change in the future.
|
* NOTE: This is an experimental feature and might change in the future.
|
||||||
|
|
Loading…
Reference in a new issue