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

Method matchIdentifier

sup/parser-types.go:49–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (p *Parser) matchIdentifier() (string, error) {
50 l := p.lexer
51 if err := l.skipSpace(); err != nil {
52 return "", err
53 }
54 r, _, err := l.peekRune()
55 if err != nil || !idChar(r) {
56 return "", err
57 }
58 return l.scanIdentifier()
59}
60
61func (p *Parser) matchTypeName() (ast.Type, error) {
62 l := p.lexer

Callers 2

matchValueMethod · 0.95
matchSymbolMethod · 0.95

Calls 4

idCharFunction · 0.85
skipSpaceMethod · 0.80
peekRuneMethod · 0.80
scanIdentifierMethod · 0.80

Tested by

no test coverage detected