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

Method createComp

pkg/vdom/vdom_root.go:312–315  ·  view source on GitHub ↗
(tag string, key string, comp **ComponentImpl)

Source from the content-addressed store, hash-verified

310}
311
312func (r *RootElem) createComp(tag string, key string, comp **ComponentImpl) {
313 *comp = &ComponentImpl{WaveId: uuid.New().String(), Tag: tag, Key: key}
314 r.CompMap[(*comp).WaveId] = *comp
315}
316
317func (r *RootElem) renderText(text string, comp **ComponentImpl) {
318 if (*comp).Text != text {

Callers 1

renderMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected