MCPcopy
hub / github.com/williamngan/pts / parse_class_method

Function parse_class_method

parse.py:238–250  ·  view source on GitHub ↗
( c )

Source from the content-addressed store, hash-verified

236
237
238def parse_class_method( c ):
239 if not c.get('name', False):
240 return {}
241
242 return {
243 'name': c['name'],
244 'source': get_source( c.get('sources', []) ),
245 'id': c['id'],
246 'flags': get_flags( c ),
247 'overrides': c.get('overwrites', {}).get('name', False),
248 'inherits': c.get('inheritedFrom', {}).get('name', False),
249 'signatures': [ parse_class_method_signature( s ) for s in c.get('signatures', {}) ]
250 }
251
252
253def parse_class_method_signature( c ):

Callers 1

parse_class_childrenFunction · 0.85

Calls 3

get_sourceFunction · 0.85
get_flagsFunction · 0.85

Tested by

no test coverage detected