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

Method createComp

tsunami/engine/render.go:144–147  ·  view source on GitHub ↗
(tag string, key string, containingComp string, comp **ComponentImpl)

Source from the content-addressed store, hash-verified

142}
143
144func (r *RootElem) createComp(tag string, key string, containingComp string, comp **ComponentImpl) {
145 *comp = &ComponentImpl{WaveId: uuid.New().String(), Tag: tag, Key: key, ContainingComp: containingComp}
146 r.CompMap[(*comp).WaveId] = *comp
147}
148
149// handles reconcilation
150// maps children via key or index (exclusively)

Callers 1

renderMethod · 0.95

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected