MCPcopy Create free account
hub / github.com/brimdata/super / matchValueList

Method matchValueList

sup/parser-values.go:407–428  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

405}
406
407func (p *Parser) matchValueList() ([]ast.Value, error) {
408 l := p.lexer
409 var vals []ast.Value
410 for {
411 val, err := p.matchValue()
412 if err != nil {
413 return nil, err
414 }
415 if val == nil {
416 break
417 }
418 vals = append(vals, val)
419 ok, err := l.match(',')
420 if err != nil {
421 return nil, err
422 }
423 if !ok {
424 break
425 }
426 }
427 return vals, nil
428}
429
430func (p *Parser) matchSetOrMap() (ast.Any, error) {
431 l := p.lexer

Callers 2

matchArrayMethod · 0.95
matchSetOrMapMethod · 0.95

Calls 2

matchValueMethod · 0.95
matchMethod · 0.45

Tested by

no test coverage detected