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

Method introspect

script/ghmock/introspection.go:22–24  ·  view source on GitHub ↗

introspect answers __type and __schema as GitHub would. gh asks which fields a type has to decide which queries to send. For example, gh issue develop stops if the LinkedBranch type has no fields, so placeholders here would change what gh does.

(f *ast.Field, sel ast.SelectionSet)

Source from the content-addressed store, hash-verified

20// develop stops if the LinkedBranch type has no fields, so placeholders here
21// would change what gh does.
22func (s *gqlScaffolder) introspect(f *ast.Field, sel ast.SelectionSet) any {
23 return s.introValue(s.introspectionRoot(f), sel)
24}
25
26func (s *gqlScaffolder) introspectionRoot(f *ast.Field) introObject {
27 switch f.Name {

Callers 1

fillObjectMethod · 0.95

Calls 2

introValueMethod · 0.95
introspectionRootMethod · 0.95

Tested by

no test coverage detected