()
| 33 | } |
| 34 | |
| 35 | func (p Projection) Paths() []Path { |
| 36 | var paths []Path |
| 37 | for _, node := range p { |
| 38 | name := node.Name |
| 39 | if len(node.Proj) > 0 { |
| 40 | for _, path := range node.Proj.Paths() { |
| 41 | paths = append(paths, append(Path{name}, path...)) |
| 42 | } |
| 43 | } else { |
| 44 | paths = append(paths, Path{name}) |
| 45 | } |
| 46 | } |
| 47 | return paths |
| 48 | } |
no outgoing calls