MCPcopy Create free account
hub / github.com/PRQL/prql / write_key_values

Function write_key_values

prqlc/prqlc/src/debug/render_html.rs:351–357  ·  view source on GitHub ↗
(w: &mut W, pairs: &[(&'static str, &dyn Debug)])

Source from the content-addressed store, hash-verified

349}
350
351fn write_key_values<W: Write>(w: &mut W, pairs: &[(&'static str, &dyn Debug)]) -> Result {
352 writeln!(w, r#"<div class="key-values">"#)?;
353 for (k, v) in pairs {
354 writeln!(w, r#"<div><b class="blue">{k}</b>: {v:?}</div>"#)?;
355 }
356 writeln!(w, "</div>")
357}
358
359/// A hacky way to reconstruct AST nodes from their JSON serialization.
360/// Finds structures that look like `{ "BinOp": { ... }, "span": ... }`

Callers 2

write_debug_logFunction · 0.85
write_repr_prqlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected