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

Method applyMutations

node.go:18–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16}
17
18func (t typescriptNode) applyMutations() (typescriptNode, error) {
19 for i, m := range t.mutations {
20 var err error
21 t.Node, err = m(t.Node)
22 if err != nil {
23 return t, fmt.Errorf("apply mutation %d: %w", i, err)
24 }
25 }
26 t.mutations = nil
27 return t, nil
28}
29
30func (t *typescriptNode) AddEnum(member *bindings.EnumMember) {
31 t.mutations = append(t.mutations, func(v bindings.Node) (bindings.Node, error) {

Callers 1

ToTypescriptMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected