Add return type in parameter list

go-templates
Anthony Johnson 9 years ago
parent 80b101dc5e
commit 89bdf1c0e2

@ -189,6 +189,8 @@ class DotNetBase(AutoAPIBase):
'desc': param.get('description', '')
})
self.returns = syntax.get('return', None)
# Inheritance
# TODO Support more than just a class type here, should support enum/etc
self.inheritance = [DotNetClass({'id': iobj['id'], 'name': iobj['name']})

@ -13,6 +13,9 @@
:type {{ param.name }}: {{ param.type }}
{%- endif %}
{%- endfor %}
{%- if object.returns %}
:return: {{ object.returns.id }}
{%- endif %}
.. code-block:: csharp

Loading…
Cancel
Save