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

Method parseAnyMatcher

compiler/parser/parser.go:25412–25426  ·  view source on GitHub ↗
(any *anyMatcher)

Source from the content-addressed store, hash-verified

25410}
25411
25412func (p *parser) parseAnyMatcher(any *anyMatcher) (any, bool) {
25413 if p.debug {
25414 defer p.out(p.in("parseAnyMatcher"))
25415 }
25416
25417 if p.pt.rn == utf8.RuneError && p.pt.w == 0 {
25418 // EOF - see utf8.DecodeRune
25419 p.failAt(false, p.pt.position, ".")
25420 return nil, false
25421 }
25422 start := p.pt
25423 p.read()
25424 p.failAt(true, start.position, ".")
25425 return p.sliceFrom(start), true
25426}
25427
25428func (p *parser) parseCharClassMatcher(chr *charClassMatcher) (any, bool) {
25429 if p.debug {

Callers 1

parseExprMethod · 0.95

Calls 5

outMethod · 0.95
inMethod · 0.95
failAtMethod · 0.95
readMethod · 0.95
sliceFromMethod · 0.95

Tested by

no test coverage detected