comparison CodeAnalysis/FunctionDocumentation.mustache @ 181:faaa3fec799a java-code-model

refactoring using FunctionDocumentation.mustache
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 02 Jul 2024 13:26:33 +0200
parents
children 7e8085f80df5
comparison
equal deleted inserted replaced
180:ddf3e987827f 181:faaa3fec799a
1 {{#documentation.short_description}}
2 # {{documentation.short_description}}
3 {{/documentation.short_description}}
4 def {{short_name}}({{#is_method}}self{{#documentation.has_args}}, {{/documentation.has_args}}{{/is_method}}{{documentation.args_declaration}}) -> {{documentation.return_type}}:
5 """
6 {{#documentation.description}}
7 {{text}}
8 {{/documentation.description}}
9 {{#documentation.has_args}}
10
11 Args:
12 {{#documentation.args}}
13 {{name}} ({{type}}): {{text}}
14 {{/documentation.args}}
15 {{/documentation.has_args}}
16 {{#documentation.has_return}}
17
18 Returns:
19 {{documentation.return_type}}: {{documentation.return_text}}
20 {{/documentation.has_return}}
21 """
22 ...