add DebugVariable.children for supporting complex variables

This commit is contained in:
Vadim Lopatin 2016-01-12 13:36:30 +03:00
parent 40a1c3032f
commit 25694f1bf5
1 changed files with 6 additions and 0 deletions

View File

@ -171,11 +171,17 @@ class DebugVariable {
string name;
string type;
string value;
DebugVariable[] children;
this() {}
/// deep copy
this(DebugVariable v) {
name = v.name;
type = v.type;
value = v.value;
// deep copy of child vars
foreach(item; v.children)
children ~= new DebugVariable(item);
}
}