(w: &mut W, ast: &pl::ModuleDef)
| 283 | } |
| 284 | |
| 285 | fn write_repr_pl<W: Write>(w: &mut W, ast: &pl::ModuleDef) -> Result { |
| 286 | writeln!(w, r#"<div class="pl repr">"#)?; |
| 287 | |
| 288 | let json = serde_json::to_string(ast).unwrap(); |
| 289 | let json_node: serde_json::Value = serde_json::from_str(&json).unwrap(); |
| 290 | write_json_ast_node(w, json_node, false)?; |
| 291 | |
| 292 | writeln!(w, "</div>") |
| 293 | } |
| 294 | |
| 295 | fn write_repr_decl<W: Write>(w: &mut W, root_mod: &decl::RootModule) -> Result { |
| 296 | writeln!(w, r#"<div class="decl repr">"#)?; |
no test coverage detected