registertopLevelFunction method
void
registertopLevelFunction(
- String? name,
- NativeFunctionImpl function,
- String library, {
- String? sourceUri,
- String? signature,
Lower-case alias for registerTopLevelFunction.
The D4rt bridge generator emits interpreter.registertopLevelFunction(...)
(note the lower-case t). The analyzer-based D4rt front-ends in
tom_d4rt and tom_d4rt_exec carry the same alias so generated bridge
files compile against them. This alias lets the generated Flutter bridges
target D4rtRunner directly (via package:tom_d4rt_ast/d4rt.dart),
keeping tom_d4rt_ast free of any dependency on tom_d4rt_exec.
Implementation
void registertopLevelFunction(
String? name,
NativeFunctionImpl function,
String library, {
String? sourceUri,
String? signature,
}) =>
registerTopLevelFunction(
name,
function,
library,
sourceUri: sourceUri,
signature: signature,
);