MCPcopy Create free account
hub / github.com/ZeppelinMC/Zeppelin / appendNode

Function appendNode

server/command/graph.go:56–64  ·  view source on GitHub ↗
(parentIndex int32, n Node, tgt *[]play.Node)

Source from the content-addressed store, hash-verified

54}
55
56func appendNode(parentIndex int32, n Node, tgt *[]play.Node) {
57 index := int32(len(*tgt))
58 (*tgt)[parentIndex].Children = append((*tgt)[parentIndex].Children, index)
59 (*tgt) = append((*tgt), n.Node)
60
61 for _, child := range n.children {
62 appendNode(index, child, tgt)
63 }
64}

Callers 1

EncodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected