registertopLevelFunction method

void registertopLevelFunction(
  1. String? name,
  2. NativeFunctionImpl function,
  3. String library, {
  4. String? sourceUri,
  5. 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,
    );