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

Method parseNotExpr

compiler/parser/parser.go:25586–25602  ·  view source on GitHub ↗
(not *notExpr)

Source from the content-addressed store, hash-verified

25584}
25585
25586func (p *parser) parseNotExpr(not *notExpr) (any, bool) {
25587 if p.debug {
25588 defer p.out(p.in("parseNotExpr"))
25589 }
25590
25591 pt := p.pt
25592 state := p.cloneState()
25593 p.pushV()
25594 p.maxFailInvertExpected = !p.maxFailInvertExpected
25595 _, ok := p.parseExprWrap(not.expr)
25596 p.maxFailInvertExpected = !p.maxFailInvertExpected
25597 p.popV()
25598 p.restoreState(state)
25599 p.restore(pt)
25600
25601 return nil, !ok
25602}
25603
25604func (p *parser) parseOneOrMoreExpr(expr *oneOrMoreExpr) (any, bool) {
25605 if p.debug {

Callers 1

parseExprMethod · 0.95

Calls 8

outMethod · 0.95
inMethod · 0.95
cloneStateMethod · 0.95
pushVMethod · 0.95
parseExprWrapMethod · 0.95
popVMethod · 0.95
restoreStateMethod · 0.95
restoreMethod · 0.95

Tested by

no test coverage detected