MCPcopy Index your code
hub / github.com/rhysd/actionlint / parseStringSequence

Method parseStringSequence

parse.go:211–224  ·  view source on GitHub ↗
(sec string, n *yaml.Node, allowEmpty bool, allowElemEmpty bool)

Source from the content-addressed store, hash-verified

209}
210
211func (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
226func (p *parser) parseStringOrStringSequence(sec string, n *yaml.Node, allowEmpty bool, allowElemEmpty bool) []*String {
227 switch n.Kind {

Callers 5

parseContainerMethod · 0.95
parseJobMethod · 0.95

Calls 2

checkSequenceMethod · 0.95
parseStringMethod · 0.95

Tested by

no test coverage detected