MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / makeContextVal

Function makeContextVal

tsunami/engine/hooks.go:30–38  ·  view source on GitHub ↗
(root *RootElem, comp *ComponentImpl, opts *RenderOpts)

Source from the content-addressed store, hash-verified

28}
29
30func makeContextVal(root *RootElem, comp *ComponentImpl, opts *RenderOpts) *RenderContextImpl {
31 return &RenderContextImpl{
32 Root: root,
33 Comp: comp,
34 HookIdx: 0,
35 RenderOpts: opts,
36 UsedAtoms: make(map[string]bool),
37 }
38}
39
40func (vc *RenderContextImpl) GetCompWaveId() string {
41 if vc.Comp == nil {

Callers 1

renderComponentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected