MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / scanIgnoreWhitespace

Method scanIgnoreWhitespace

pkg/filter/ql/parser.go:659–667  ·  view source on GitHub ↗

scanIgnoreWhitespace scans the next non-whitespace.

()

Source from the content-addressed store, hash-verified

657
658// scanIgnoreWhitespace scans the next non-whitespace.
659func (p *Parser) scanIgnoreWhitespace() (tok token, pos int, lit string) {
660 for {
661 tok, pos, lit = p.scan()
662 if tok == WS {
663 continue
664 }
665 return
666 }
667}
668
669// unscan pushes the previously read token back onto the buffer.
670func (p *Parser) unscan() { p.s.unscan() }

Callers 7

ParseSequenceMethod · 0.95
IsSequenceMethod · 0.95
ParseExprMethod · 0.95
parseUnaryExprMethod · 0.95
parseListMethod · 0.95
parseFunctionMethod · 0.95
parseDurationMethod · 0.95

Calls 1

scanMethod · 0.95

Tested by

no test coverage detected