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

Method parseDirectiveLocations

parser/schema.go:575–585  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

573}
574
575func (p *parser) parseDirectiveLocations() []DirectiveLocation {
576 p.skip(lexer.Pipe)
577
578 locations := []DirectiveLocation{p.parseDirectiveLocation()}
579
580 for p.skip(lexer.Pipe) && p.err == nil {
581 locations = append(locations, p.parseDirectiveLocation())
582 }
583
584 return locations
585}
586
587func (p *parser) parseDirectiveLocation() DirectiveLocation {
588 name, _ := p.expect(lexer.Name)

Callers 1

Calls 2

skipMethod · 0.95

Tested by

no test coverage detected