()
| 38 | } |
| 39 | |
| 40 | func (node *ModTreeNode) Path() ModTreePath { |
| 41 | if node.Parent == nil { |
| 42 | return nil |
| 43 | } |
| 44 | var path ModTreePath |
| 45 | path = append(path, node.Parent.Path()...) |
| 46 | path = append(path, node.Name) |
| 47 | return path |
| 48 | } |
| 49 | |
| 50 | func NewModTree(ctx context.Context, mod dagql.ObjectResult[*Module]) (*ModTreeNode, error) { |
| 51 | main := mod.Self() |
no outgoing calls
no test coverage detected