MCPcopy Create free account
hub / github.com/ElementsProject/lightning / output_array

Function output_array

tools/fromschema.py:101–111  ·  view source on GitHub ↗

We've already said it's an array of {type}

(items, indent)

Source from the content-addressed store, hash-verified

99
100
101def output_array(items, indent):
102 """We've already said it's an array of {type}"""
103 if items['type'] == 'object':
104 output_members(items, indent)
105 elif items['type'] == 'array':
106 output(indent + '- {}:\n'.format(items['description']))
107 output_array(items['items'], indent + ' ')
108 else:
109 output(indent + '- {}'.format(items['description']))
110 output_range(items)
111 output('\n')
112
113
114def has_members(sub):

Callers 1

output_memberFunction · 0.85

Calls 3

output_membersFunction · 0.85
outputFunction · 0.85
output_rangeFunction · 0.85

Tested by

no test coverage detected