MCPcopy Create free account
hub / github.com/donatj/sqlread / scanUntil

Method scanUntil

parser.go:25–36  ·  view source on GitHub ↗
(l ...lexItemType)

Source from the content-addressed store, hash-verified

23}
24
25func (p *Parser) scanUntil(l ...lexItemType) (c LexItem, ok bool) {
26 for {
27 c, ok = p.scan()
28 if !ok {
29 return
30 }
31
32 if isOfAny(c, l...) {
33 return
34 }
35 }
36}
37
38// Run begins the Parser state machine
39// It requires a start state

Callers 2

parseCreateBuilderMethod · 0.80

Calls 2

scanMethod · 0.95
isOfAnyFunction · 0.85

Tested by

no test coverage detected