Skip to main content

luaur_analysis/functions/
to_string_named_function_to_string.rs

1//! Node: `cxx:Function:Luau.Analysis:Analysis/include/Luau/ToString.h:135:to_string_named_function`
2//! Source: `Analysis/include/Luau/ToString.h:135-139` (hand-ported)
3
4use crate::records::function_type::FunctionType;
5use crate::records::to_string_options::ToStringOptions;
6use alloc::string::String;
7
8/// C++ `inline std::string toStringNamedFunction(const std::string& funcName, const FunctionType& ftv)`.
9pub fn to_string_named_function_string_function_type(
10    func_name: &str,
11    ftv: &FunctionType,
12) -> String {
13    let mut opts = ToStringOptions::default();
14    crate::functions::to_string_named_function_to_string_alt_b::to_string_named_function_string_function_type_to_string_options(func_name, ftv, &mut opts)
15}