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

Method GetAtom

pkg/vdom/vdom_root.go:81–88  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

79}
80
81func (r *RootElem) GetAtom(name string) *Atom {
82 atom, ok := r.Atoms[name]
83 if !ok {
84 atom = &Atom{UsedBy: make(map[string]bool)}
85 r.Atoms[name] = atom
86 }
87 return atom
88}
89
90func (r *RootElem) GetAtomVal(name string) any {
91 atom := r.GetAtom(name)

Callers 3

GetAtomValMethod · 0.95
SetAtomValMethod · 0.95
UseAtomFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected