Skip to content

Commit

Permalink
Update tests.ps1
Browse files Browse the repository at this point in the history
Added GetChildren, must be recursive ... goes inside children nodes, gut does not return anything :(
  • Loading branch information
LxLeChat committed Oct 16, 2019
1 parent e286dc1 commit 95085e1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,17 @@ class node {
$g = "<#`n DiagramDescription: $e`n#>`n"
$this.NewContent = $this.raw.Extent.Text.Insert($f+2,$g)
}

[object[]] GetChildren ([bool]$r) {
If ( $r ) {
foreach ( $c in $this.children ) {
write-host "Getchildren de $($c.Statement)"
$return += $c.GetChildren($r)
}
}
#$return += $this.Children
return $this.Children
}

}

Expand Down

0 comments on commit 95085e1

Please sign in to comment.