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
//! Node: `cxx:Function:Luau.Analysis:Analysis/src/ToString.cpp:1722:to_string`
//! Source: `Analysis/src/ToString.cpp:1722-1725` (hand-ported)

use crate::functions::to_string_detailed_to_string::to_string_detailed;
use crate::records::to_string_options::ToStringOptions;
use crate::type_aliases::type_id::TypeId;
use alloc::string::String;

/// C++ `std::string toString(TypeId ty, ToStringOptions& opts)`.
pub fn to_string_type_id_to_string_options(ty: TypeId, opts: &mut ToStringOptions) -> String {
    to_string_detailed(ty, opts).name
}