(w: &mut W, pairs: &[(&'static str, &dyn Debug)])
| 349 | } |
| 350 | |
| 351 | fn 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": ... }` |
no outgoing calls
no test coverage detected