MCPcopy Index your code
hub / github.com/coder/guts / setNode

Method setNode

convert.go:427–433  ·  view source on GitHub ↗
(key string, node typescriptNode)

Source from the content-addressed store, hash-verified

425}
426
427func (ts *Typescript) setNode(key string, node typescriptNode) error {
428 if _, ok := ts.typescriptNodes[key]; ok {
429 return fmt.Errorf("node %q already exists", key)
430 }
431 ts.typescriptNodes[key] = &node
432 return nil
433}
434
435func (ts *Typescript) updateNode(key string, update func(n *typescriptNode)) {
436 v, ok := ts.typescriptNodes[key]

Callers 2

parseMethod · 0.95
includeComparableMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected