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

Method matchSymbol

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

Source from the content-addressed store, hash-verified

368}
369
370func (p *Parser) matchSymbol() (string, bool, error) {
371 s, ok, err := p.matchString()
372 if err != nil {
373 return "", false, noEOF(err)
374 }
375 if ok {
376 return s, true, nil
377 }
378 s, err = p.matchIdentifier()
379 if err != nil || s == "" {
380 return "", false, err
381 }
382 return s, true, nil
383}
384
385func (p *Parser) matchArray() (*ast.Array, error) {
386 l := p.lexer

Callers 3

matchTypeFieldMethod · 0.95
matchEnumSymbolsMethod · 0.95
matchFieldMethod · 0.95

Calls 3

matchStringMethod · 0.95
matchIdentifierMethod · 0.95
noEOFFunction · 0.70

Tested by

no test coverage detected