Skip to main content

luaur_analysis/methods/
json_emitter_write_object.rs

1use crate::records::json_emitter::JsonEmitter;
2use crate::records::object_emitter::ObjectEmitter;
3
4impl JsonEmitter {
5    pub fn write_object(&mut self) -> ObjectEmitter {
6        let comma = self.push_comma();
7        self.write_raw_string_view("{");
8
9        ObjectEmitter {
10            emitter: self as *mut JsonEmitter,
11            comma,
12            finished: false,
13        }
14    }
15}