(stack []*VDomElem, child *VDomElem)
| 23 | const Html_BindTagName = "bind" |
| 24 | |
| 25 | func 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 | |
| 36 | func pushElemStack(stack []*VDomElem, elem *VDomElem) []*VDomElem { |
| 37 | if elem == nil { |
no outgoing calls
no test coverage detected