MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Parent

Method Parent

stack.go:221–231  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

219}
220
221func (stack *Stack) Parent() *Card {
222 var parent *Card
223 stack.ForEachInHead(func(c *Card) bool {
224 if c.Stack.Number.IsParentOf(stack.Number) {
225 parent = c
226 return false
227 }
228 return true
229 })
230 return parent
231}
232
233func (stack *Stack) TopNumberable() *Card {
234

Callers

nothing calls this directly

Calls 2

ForEachInHeadMethod · 0.95
IsParentOfMethod · 0.80

Tested by

no test coverage detected