MCPcopy Create free account
hub / github.com/Ray-D-Song/lexe / write_primitive

Function write_primitive

libs/llrt_json/src/stringify.rs:192–201  ·  view source on GitHub ↗
(
    context: &mut StringifyContext<'_, 'js>,
    add_comma: bool,
)

Source from the content-addressed store, hash-verified

190}
191
192fn write_primitive<'js>(
193 context: &mut StringifyContext<'_, 'js>,
194 add_comma: bool,
195) -> Result<PrimitiveStatus<'js>> {
196 if let Some(replacer_fn) = context.replacer_fn {
197 return run_replacer(context, replacer_fn, add_comma);
198 }
199
200 write_primitive2(context, add_comma, None)
201}
202
203fn write_primitive2<'js>(
204 context: &mut StringifyContext<'_, 'js>,

Callers 2

append_valueFunction · 0.85

Calls 2

run_replacerFunction · 0.85
write_primitive2Function · 0.85

Tested by

no test coverage detected