luaur-analysis 0.1.3

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::records::json_emitter::JsonEmitter;
use crate::records::type_binding_snapshot::TypeBindingSnapshot;

pub fn write_json_emitter_type_binding_snapshot(
    emitter: &mut JsonEmitter,
    snapshot: &TypeBindingSnapshot,
) {
    let mut o = emitter.write_object();
    o.write_pair("typeId", &snapshot.type_id);
    o.write_pair("typeString", &snapshot.type_string);
    o.finish();
}