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

Function popElemStack

pkg/vdom/vdom_html.go:43–50  ·  view source on GitHub ↗
(stack []*VDomElem)

Source from the content-addressed store, hash-verified

41}
42
43func popElemStack(stack []*VDomElem) []*VDomElem {
44 if len(stack) <= 1 {
45 return stack
46 }
47 curElem := stack[len(stack)-1]
48 appendChildToStack(stack[:len(stack)-1], curElem)
49 return stack[:len(stack)-1]
50}
51
52func curElemTag(stack []*VDomElem) string {
53 if len(stack) == 0 {

Callers 2

finalizeStackFunction · 0.85
BindFunction · 0.85

Calls 1

appendChildToStackFunction · 0.85

Tested by

no test coverage detected