MCPcopy Create free account
hub / github.com/vektah/gqlparser / many

Method many

parser/parser.go:168–178  ·  view source on GitHub ↗
(start, end lexer.Type, cb func())

Source from the content-addressed store, hash-verified

166}
167
168func (p *parser) many(start, end lexer.Type, cb func()) {
169 hasDef := p.skip(start)
170 if !hasDef {
171 return
172 }
173
174 for p.peek().Kind != end && p.err == nil {
175 cb()
176 }
177 p.next()
178}
179
180func (p *parser) some(start, end lexer.Type, cb func()) *ast.CommentGroup {
181 hasDef := p.skip(start)

Callers 3

parseListMethod · 0.95
parseObjectMethod · 0.95
TestParserUtilsFunction · 0.80

Calls 3

skipMethod · 0.95
peekMethod · 0.95
nextMethod · 0.95

Tested by 1

TestParserUtilsFunction · 0.64