[][src]Function dart_sys::Dart_Invoke

pub unsafe extern "C" fn Dart_Invoke(
    target: Dart_Handle,
    name: Dart_Handle,
    number_of_arguments: c_int,
    arguments: *mut Dart_Handle
) -> Dart_Handle

Invokes a method or function.

The 'target' parameter may be an object, type, or library. If 'target' is an object, then this function will invoke an instance method. If 'target' is a type, then this function will invoke a static method. If 'target' is a library, then this function will invoke a top-level function from that library. NOTE: This API call cannot be used to invoke methods of a type object.

This function ignores visibility (leading underscores in names).

May generate an unhandled exception error.

\param target An object, type, or library. \param name The name of the function or method to invoke. \param number_of_arguments Size of the arguments array. \param arguments An array of arguments to the function.

\return If the function or method is called and completes successfully, then the return value is returned. If an error occurs during execution, then an error handle is returned.