(sec string, n *yaml.Node, allowEmpty bool, allowElemEmpty bool)
| 209 | } |
| 210 | |
| 211 | func (p *parser) parseStringSequence(sec string, n *yaml.Node, allowEmpty bool, allowElemEmpty bool) []*String { |
| 212 | if ok := p.checkSequence(sec, n, allowEmpty); !ok { |
| 213 | return nil |
| 214 | } |
| 215 | |
| 216 | ss := make([]*String, 0, len(n.Content)) |
| 217 | for _, c := range n.Content { |
| 218 | s := p.parseString(c, allowElemEmpty) |
| 219 | if s != nil { |
| 220 | ss = append(ss, s) |
| 221 | } |
| 222 | } |
| 223 | return ss |
| 224 | } |
| 225 | |
| 226 | func (p *parser) parseStringOrStringSequence(sec string, n *yaml.Node, allowEmpty bool, allowElemEmpty bool) []*String { |
| 227 | switch n.Kind { |
no test coverage detected