MCPcopy Create free account
hub / github.com/datasweet/datatable / emptyCopy

Method emptyCopy

column.go:191–205  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189}
190
191func (c *column) emptyCopy() *column {
192 cpy := &column{
193 name: c.name,
194 typ: c.typ,
195 hidden: c.hidden,
196 formulae: c.formulae,
197 serie: c.serie.EmptyCopy(),
198 }
199 if len(cpy.formulae) > 0 {
200 if parsed, err := expr.Parse(cpy.formulae); err == nil {
201 cpy.expr = parsed
202 }
203 }
204 return cpy
205}
206
207func (c *column) copy() *column {
208 cpy := &column{

Callers 3

EmptyCopyMethod · 0.80
copyColumnsToMethod · 0.80
ConcatMethod · 0.80

Calls 1

EmptyCopyMethod · 0.65

Tested by

no test coverage detected