MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / appendChildToStack

Function appendChildToStack

pkg/vdom/vdom_html.go:25–34  ·  view source on GitHub ↗
(stack []*VDomElem, child *VDomElem)

Source from the content-addressed store, hash-verified

23const Html_BindTagName = "bind"
24
25func appendChildToStack(stack []*VDomElem, child *VDomElem) {
26 if child == nil {
27 return
28 }
29 if len(stack) == 0 {
30 return
31 }
32 parent := stack[len(stack)-1]
33 parent.Children = append(parent.Children, *child)
34}
35
36func pushElemStack(stack []*VDomElem, elem *VDomElem) []*VDomElem {
37 if elem == nil {

Callers 2

popElemStackFunction · 0.85
BindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected