(c *ComponentImpl)
| 293 | } |
| 294 | |
| 295 | func (r *RootElem) convertBaseToRendered(c *ComponentImpl) *rpctypes.RenderedElem { |
| 296 | elem := &rpctypes.RenderedElem{WaveId: c.WaveId, Tag: c.Tag} |
| 297 | if c.Elem != nil { |
| 298 | elem.Props = convertPropsToVDom(c.Elem.Props) |
| 299 | } |
| 300 | for _, child := range c.Children { |
| 301 | childElem := r.convertCompToRendered(child) |
| 302 | if childElem != nil { |
| 303 | elem.Children = append(elem.Children, *childElem) |
| 304 | } |
| 305 | } |
| 306 | if c.Tag == vdom.TextTag { |
| 307 | elem.Text = c.Text |
| 308 | } |
| 309 | return elem |
| 310 | } |
| 311 | |
| 312 | func isBaseTag(tag string) bool { |
| 313 | if tag == "" { |
no test coverage detected