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 name;
|
||||||
string type;
|
string type;
|
||||||
string value;
|
string value;
|
||||||
|
DebugVariable[] children;
|
||||||
|
|
||||||
this() {}
|
this() {}
|
||||||
|
/// deep copy
|
||||||
this(DebugVariable v) {
|
this(DebugVariable v) {
|
||||||
name = v.name;
|
name = v.name;
|
||||||
type = v.type;
|
type = v.type;
|
||||||
value = v.value;
|
value = v.value;
|
||||||
|
// deep copy of child vars
|
||||||
|
foreach(item; v.children)
|
||||||
|
children ~= new DebugVariable(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue