MCPcopy
hub / github.com/go-task/task / DeepCopy

Method DeepCopy

taskfile/ast/for.go:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62}
63
64func (f *For) DeepCopy() *For {
65 if f == nil {
66 return nil
67 }
68 return &For{
69 From: f.From,
70 List: deepcopy.Slice(f.List),
71 Matrix: f.Matrix.DeepCopy(),
72 Var: f.Var,
73 Split: f.Split,
74 As: f.As,
75 }
76}

Callers

nothing calls this directly

Calls 2

SliceFunction · 0.92
DeepCopyMethod · 0.65

Tested by

no test coverage detected