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

Method IsSequence

pkg/filter/ql/parser.go:206–213  ·  view source on GitHub ↗

IsSequence checks whether the expression given to the parser is a sequence.

()

Source from the content-addressed store, hash-verified

204
205// IsSequence checks whether the expression given to the parser is a sequence.
206func (p *Parser) IsSequence() bool {
207 tok, _, _ := p.scanIgnoreWhitespace()
208 if tok == Seq {
209 return true
210 }
211 p.unscan()
212 return false
213}
214
215// ParseExpr parses an expression by building the binary expression tree.
216func (p *Parser) ParseExpr() (Expr, error) {

Callers

nothing calls this directly

Calls 2

scanIgnoreWhitespaceMethod · 0.95
unscanMethod · 0.95

Tested by

no test coverage detected