luaur-analysis 0.1.0

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Node: `cxx:Function:Luau.Analysis:Analysis/include/Luau/ToString.h:135:to_string_named_function`
//! Source: `Analysis/include/Luau/ToString.h:135-139` (hand-ported)

use crate::records::function_type::FunctionType;
use crate::records::to_string_options::ToStringOptions;
use alloc::string::String;

/// C++ `inline std::string toStringNamedFunction(const std::string& funcName, const FunctionType& ftv)`.
pub fn to_string_named_function_string_function_type(
    func_name: &str,
    ftv: &FunctionType,
) -> String {
    let mut opts = ToStringOptions::default();
    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)
}