Skip to main content

luaur_analysis/methods/
json_emitter_write_comma.rs

1use crate::records::json_emitter::JsonEmitter;
2
3impl JsonEmitter {
4    pub fn write_comma(&mut self) {
5        if self.comma {
6            self.write_raw_c_char(b',' as core::ffi::c_char);
7        } else {
8            self.comma = true;
9        }
10    }
11}