(types ...itemType)
| 83 | } |
| 84 | |
| 85 | func (p *parser) collectValues(types ...itemType) []string { |
| 86 | items := p.collect(types...) |
| 87 | ret := make([]string, len(items)) |
| 88 | for i, v := range items { |
| 89 | ret[i] = v.val |
| 90 | } |
| 91 | return ret |
| 92 | } |
| 93 | |
| 94 | // Collects an arbitrary number of patterns, and returns a (watch, exclude, |
| 95 | // NoCommonFilter) tuple. |