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

Function mergeSelections

script/ghmock/gqlscaffold.go:388–397  ·  view source on GitHub ↗
(fields []*ast.Field)

Source from the content-addressed store, hash-verified

386}
387
388func mergeSelections(fields []*ast.Field) ast.SelectionSet {
389 if len(fields) == 1 {
390 return fields[0].SelectionSet
391 }
392 var merged ast.SelectionSet
393 for _, f := range fields {
394 merged = append(merged, f.SelectionSet...)
395 }
396 return merged
397}
398
399func deprecated(dirs ast.DirectiveList) bool {
400 return dirs.ForName("deprecated") != nil

Callers 4

objectMethod · 0.85
fillObjectMethod · 0.85
mergeIntrospectionMethod · 0.85
introValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected