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

Function parse_class_variable

parse.py:206–219  ·  view source on GitHub ↗
( c )

Source from the content-addressed store, hash-verified

204
205
206def parse_class_variable( c ):
207 if not c.get('name', False):
208 return False
209
210 return {
211 'name': c['name'],
212 'source': get_source( c.get('sources', []) ),
213 'id': c['id'],
214 'flags': get_flags( c ),
215 'type': get_type( c ),
216 'overrides': c.get('overwrites', {}).get('name', False),
217 'inherits': c.get('inheritedFrom', {}).get('name', False),
218 'comment': get_comment( c )
219 }
220
221
222def parse_class_property( c ):

Callers 1

parse_class_childrenFunction · 0.85

Calls 4

get_sourceFunction · 0.85
get_flagsFunction · 0.85
get_typeFunction · 0.85
get_commentFunction · 0.85

Tested by

no test coverage detected