MCPcopy Index your code
hub / github.com/perkeep/perkeep / stripNot

Method stripNot

pkg/search/expr.go:116–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114}
115
116func (p *parser) stripNot() (negated bool) {
117 for {
118 switch p.peek().typ {
119 case tokenNot:
120 p.next()
121 negated = !negated
122 continue
123 }
124 return negated
125 }
126}
127
128func (p *parser) parseExp() (c *Constraint, err error) {
129 if p.peek().typ == tokenEOF {

Callers 1

parseOperandMethod · 0.95

Calls 2

peekMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected