luaur-analysis 0.1.0

Luau type checker and type inference (Rust).
Documentation
1
2
3
4
5
6
7
8
9
use crate::records::error_snapshot::ErrorSnapshot;
use crate::records::json_emitter::JsonEmitter;

pub fn write_json_emitter_error_snapshot(emitter: &mut JsonEmitter, snapshot: &ErrorSnapshot) {
    let mut o = emitter.write_object();
    o.write_pair("message", &snapshot.message);
    o.write_pair("location", &snapshot.location);
    o.finish();
}