MCPcopy Create free account
hub / github.com/coder/guts / Identifier

Method Identifier

bindings/bindings.go:161–173  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

159}
160
161func (b *Bindings) Identifier(name string) (*goja.Object, error) {
162 modifier, err := b.f("identifier")
163 if err != nil {
164 return nil, err
165 }
166
167 res, err := modifier(goja.Undefined(), b.vm.ToValue(name))
168 if err != nil {
169 panic(err)
170 }
171
172 return res.ToObject(b.vm), nil
173}
174
175func (b *Bindings) Reference(ref *ReferenceType) (*goja.Object, error) {
176 modifier, err := b.f("reference")

Callers

nothing calls this directly

Calls 2

fMethod · 0.95
modifierFunction · 0.85

Tested by

no test coverage detected