luaur-analysis 0.1.1

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:Method:Luau.Analysis:Analysis/src/ToString.cpp:280:stringifier_state_emit`
//! Source: `Analysis/src/ToString.cpp:280-285` (hand-ported)

use crate::records::stringifier_state::StringifierState;
use crate::records::type_level::TypeLevel;
use alloc::string::ToString;

impl StringifierState {
    /// C++ `void emit(TypeLevel level)`.
    pub fn emit_type_level(&mut self, level: TypeLevel) {
        self.emit_string(&level.level.to_string());
        self.emit_string("-");
        self.emit_string(&level.subLevel.to_string());
    }
}