mirror of https://github.com/buggins/dlangide.git
add DebugVariable.children for supporting complex variables
This commit is contained in:
parent
40a1c3032f
commit
25694f1bf5
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue