Add more diagnostics

This commit is contained in:
Lucien Greathouse
2019-01-02 14:19:26 -08:00
parent 0aaefe9a66
commit 8c2e430a56
3 changed files with 49 additions and 4 deletions

View File

@@ -58,7 +58,7 @@ impl<'a> fmt::Display for VisualizeRbxTree<'a> {
fn visualize_rbx_node(tree: &RbxTree, id: RbxId, output: &mut fmt::Formatter) -> fmt::Result {
let node = tree.get_instance(id).unwrap();
writeln!(output, " \"{}\" [label=\"{}\"]", id, node.name)?;
writeln!(output, " \"{}\" [label=\"{} ({})\"]", id, node.name, node.class_name)?;
for &child_id in node.get_children_ids() {
writeln!(output, " \"{}\" -> \"{}\"", id, child_id)?;