Skip to content

Commit f5983e4

Browse files
dcharkesCommit Queue
authored and
Commit Queue
committed
[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 <[email protected]> Reviewed-by: Alexander Markov <[email protected]> Commit-Queue: Alexander Markov <[email protected]> Commit-Queue: Daco Harkes <[email protected]>
1 parent 2cc328d commit f5983e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/vm/lib/target/vm.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class VmTarget extends Target {
172172
transitiveImportingDartFfi, diagnosticReporter, referenceFromIndex);
173173
logger?.call("Transformed ffi annotations");
174174

175-
// Transform @FfiNative(..) functions into FFI native call functions.
175+
// Transform @Native(..) functions into FFI native call functions.
176176
// Pass instance method receivers as implicit first argument to the static
177177
// native function.
178178
// Transform arguments that extend NativeFieldWrapperClass1 to Pointer if

runtime/include/dart_api.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3343,7 +3343,7 @@ DART_EXPORT Dart_Handle Dart_GetNativeSymbol(Dart_Handle library,
33433343
/**
33443344
* Sets the callback used to resolve FFI native functions for a library.
33453345
* The resolved functions are expected to be a C function pointer of the
3346-
* correct signature (as specified in the `@FfiNative<NFT>()` function
3346+
* correct signature (as specified in the `@Native<NFT>()` function
33473347
* annotation in Dart code).
33483348
*
33493349
* NOTE: This is an experimental feature and might change in the future.

0 commit comments

Comments
 (0)