in src/grammar.py [0:0]
def _get_item_content(node):
item = {
'type': 'item',
'content': []
}
for children in node:
if children.tag == 'annotation':
item['content'].append({
'type': 'annotation',
'content': children.text
})
elif children.tag == 'declaration':
item['content'].append(_get_declaration(children))
elif children.tag == 'description':
item['content'].append(_get_description(children))
return item