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

Function write_repr_pr

prqlc/prqlc/src/debug/render_html.rs:275–283  ·  view source on GitHub ↗
(w: &mut W, ast: &pr::ModuleDef)

Source from the content-addressed store, hash-verified

273}
274
275fn write_repr_pr<W: Write>(w: &mut W, ast: &pr::ModuleDef) -> Result {
276 writeln!(w, r#"<div class="pr repr">"#)?;
277
278 let json = serde_json::to_string(ast).unwrap();
279 let json_node: serde_json::Value = serde_json::from_str(&json).unwrap();
280 write_json_ast_node(w, json_node, false)?;
281
282 writeln!(w, "</div>")
283}
284
285fn write_repr_pl<W: Write>(w: &mut W, ast: &pl::ModuleDef) -> Result {
286 writeln!(w, r#"<div class="pl repr">"#)?;

Callers 1

write_titled_entryFunction · 0.85

Calls 1

write_json_ast_nodeFunction · 0.85

Tested by

no test coverage detected