MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / peekTwo

Method peekTwo

go/engine/expr/parser.go:46–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46func (p *parser) peekTwo() string {
47 p.skipWhitespace()
48 if p.pos+1 >= len(p.input) {
49 if p.pos < len(p.input) {
50 return string(p.input[p.pos])
51 }
52 return ""
53 }
54 return p.input[p.pos : p.pos+2]
55}
56
57func (p *parser) parseOr() (Value, error) {
58 left, err := p.parseAnd()

Callers 4

parseOrMethod · 0.95
parseAndMethod · 0.95
parseEqualityMethod · 0.95
parseComparisonMethod · 0.95

Calls 1

skipWhitespaceMethod · 0.95

Tested by

no test coverage detected