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

Method parseDescription

parser/schema.go:114–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

112}
113
114func (p *parser) parseDescription() descriptionWithComment {
115 token := p.peek()
116
117 var desc descriptionWithComment
118 if token.Kind != lexer.BlockString && token.Kind != lexer.String {
119 return desc
120 }
121
122 desc.comment = p.comment
123 desc.text = p.next().Value
124 return desc
125}
126
127func (p *parser) parseTypeSystemDefinition(description descriptionWithComment) *Definition {
128 tok := p.peek()

Callers 5

parseSchemaDocumentMethod · 0.95
parseFieldDefinitionMethod · 0.95
parseArgumentDefMethod · 0.95
parseInputValueDefMethod · 0.95

Calls 2

peekMethod · 0.95
nextMethod · 0.95

Tested by

no test coverage detected