Method
createComp
(tag string, key string, containingComp string, comp **ComponentImpl)
Source from the content-addressed store, hash-verified
| 142 | } |
| 143 | |
| 144 | func (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) |
Tested by
no test coverage detected