parameters: (string: str)
return_statement: return arg_name
docstring: Fixes an argument in a call the orignal method.
  
    Args:
      string: A method call argument
  
    Returns:
      The fixed call argument, e.g. "const int* x" ->
      "reinterpret_cast<const int*>(x)".
docstring_summary: Fixes an argument in a call the orignal method.
docstring_tokens: Fixes an argument in a call the orignal method .
function: def fix_call_argument(string: str) -> str:
    """Fixes an argument in a call the orignal method.
  
    Args:
      string: A method call argument
  
    Returns:
      The fixed call argument, e.g. "const int* x" ->
      "reinterpret_cast<const int*>(x)".
    """
  
    arg_type = get_var_type(string)
    arg_name = get_var_name(string)
  
    # Array argument, becomes a pointer
    if "[" in arg_name:
      arg_type += "*"
      arg_name = arg_name.split("[")[0] + arg_name.split("]")[-1]
  
    # Pointer (in LibUV, types endind in "_cb" or "_func" are pointers)
    if "*" in arg_type or "_cb" in arg_type or "_func" in arg_type:
      return "reinterpret_cast<" + arg_type + ">(" + arg_name + ")"
  
    # Not a pointer
    return arg_name
function_tokens: def fix_call_argument ( string : str ) -> str : arg_type = get_var_type ( string ) arg_name = get_var_name ( string ) # Array argument, becomes a pointer if "[" in arg_name : arg_type += "*" arg_name = arg_name . split ( "[" ) [ 0 ] + arg_name . split ( "]" ) [ - 1 ] # Pointer (in LibUV, types endind in "_cb" or "_func" are pointers) if "*" in arg_type or "_cb" in arg_type or "_func" in arg_type : return "reinterpret_cast<" + arg_type + ">(" + arg_name + ")" # Not a pointer return arg_name