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

Function write_repr_decl

prqlc/prqlc/src/debug/render_html.rs:295–303  ·  view source on GitHub ↗
(w: &mut W, root_mod: &decl::RootModule)

Source from the content-addressed store, hash-verified

293}
294
295fn write_repr_decl<W: Write>(w: &mut W, root_mod: &decl::RootModule) -> Result {
296 writeln!(w, r#"<div class="decl repr">"#)?;
297
298 for (name, decl) in root_mod.module.names.iter().sorted_by_key(|x| x.0.as_str()) {
299 write_decl(w, decl, name, &root_mod.span_map)?;
300 }
301
302 writeln!(w, "</div>")
303}
304
305fn write_repr_rq<W: Write>(w: &mut W, ast: &rq::RelationalQuery) -> Result {
306 writeln!(w, r#"<div class="rq repr">"#)?;

Callers 1

write_titled_entryFunction · 0.85

Calls 3

write_declFunction · 0.85
iterMethod · 0.80
as_strMethod · 0.80

Tested by

no test coverage detected