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

Method DeepCopy

taskfile/ast/matrix.go:87–94  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87func (matrix *Matrix) DeepCopy() *Matrix {
88 if matrix == nil {
89 return nil
90 }
91 return &Matrix{
92 om: deepcopy.OrderedMap(matrix.om),
93 }
94}
95
96// DeepCopy returns a copy of the MatrixRow. Without this, deepcopy.OrderedMap
97// falls back to copying the *MatrixRow pointer as-is, so every "copy" of a

Callers

nothing calls this directly

Calls 1

OrderedMapFunction · 0.92

Tested by

no test coverage detected