MCPcopy Create free account
hub / github.com/cli/cli / resolve

Method resolve

script/ghmock/introspection.go:359–371  ·  view source on GitHub ↗
(s *gqlScaffolder, field string, args map[string]any)

Source from the content-addressed store, hash-verified

357func (introEnumValue) typeName() string { return "__EnumValue" }
358
359func (x introEnumValue) resolve(s *gqlScaffolder, field string, args map[string]any) any {
360 switch field {
361 case "name":
362 return x.v.Name
363 case "description":
364 return optional(x.v.Description)
365 case "isDeprecated":
366 return deprecated(x.v.Directives)
367 case "deprecationReason":
368 return deprecationReason(x.v.Directives)
369 }
370 return nil
371}
372
373type introDirective struct{ d *ast.DirectiveDefinition }
374

Callers

nothing calls this directly

Calls 3

optionalFunction · 0.85
deprecatedFunction · 0.85
deprecationReasonFunction · 0.85

Tested by

no test coverage detected