(t patternType, pl ...*pattern)
| 745 | type patternList []*pattern |
| 746 | |
| 747 | func newBranchPattern(t patternType, pl ...*pattern) *pattern { |
| 748 | var p pattern |
| 749 | p.t = t |
| 750 | p.children = make(patternList, len(pl)) |
| 751 | copy(p.children, pl) |
| 752 | return &p |
| 753 | } |
| 754 | |
| 755 | func newRequired(pl ...*pattern) *pattern { |
| 756 | return newBranchPattern(patternRequired, pl...) |
no outgoing calls
no test coverage detected