use immutability for the NodeSet

This commit is contained in:
Paul Bellamy
2016-01-25 14:22:04 +00:00
parent 1943ad440a
commit 66790f4436
5 changed files with 194 additions and 93 deletions

View File

@@ -141,7 +141,7 @@ func (rn RenderableNode) Copy() RenderableNode {
func (rn RenderableNode) Prune() RenderableNode {
cp := rn.Copy()
cp.Node = report.MakeNode().WithAdjacent(cp.Node.Adjacency...)
cp.Children = nil
cp.Children = report.EmptyNodeSet
return cp
}