Skip to main content

generate_method_call

Function generate_method_call 

Source
pub fn generate_method_call(
    method: &MethodInfo,
    handle_async: AsyncHandling,
) -> TokenStream
Expand description

Generate the method call expression.

Returns tokens for calling self.method_name(arg1, arg2, ...). For async methods, returns an error (caller should handle async context).