mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Add more diagnostics
This commit is contained in:
parent
0aaefe9a66
commit
8c2e430a56
3 changed files with 49 additions and 4 deletions
|
|
@ -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)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue