tree(): show which nodes are aliased to which nodes
This commit is contained in:
parent
acff4f55ab
commit
f7e246905b
1 changed files with 4 additions and 0 deletions
|
@ -111,6 +111,10 @@ var _tree = func(n, graph = 1, prefix = "", level = 0) {
|
|||
} else {
|
||||
s ~= " = " ~ debug.string(n.getValue()) ~ " " ~ attributes(n);
|
||||
}
|
||||
|
||||
if ((var a = n.getAliasTarget()) != nil)
|
||||
s ~= " " ~ _title(" alias to ") ~ " " ~ a.getPath();
|
||||
|
||||
print(s);
|
||||
|
||||
if (n.getType() != "ALIAS")
|
||||
|
|
Loading…
Add table
Reference in a new issue