def parameter(printer, ast):
    """Prints a function parameter."""
    type_str = printer.ast_to_string(ast["type"])
    is_ref_str = '&' if ast["isRef"] else ''
    var_data_str = printer.ast_to_string(ast["varData"])
    return f'{type_str} {is_ref_str}{var_data_str}'