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

Function ParseQueryWithTokenLimit

parser/query.go:16–22  ·  view source on GitHub ↗
(source *Source, maxTokenLimit int)

Source from the content-addressed store, hash-verified

14}
15
16func ParseQueryWithTokenLimit(source *Source, maxTokenLimit int) (*QueryDocument, error) {
17 p := parser{
18 lexer: lexer.New(source),
19 maxTokenLimit: maxTokenLimit,
20 }
21 return p.parseQueryDocument(), p.err
22}
23
24func (p *parser) parseQueryDocument() *QueryDocument {
25 var doc QueryDocument

Callers

nothing calls this directly

Calls 2

parseQueryDocumentMethod · 0.95
NewFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…