Skip to content

Commit

Permalink
add Exists tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Nelson committed Mar 28, 2024
1 parent 6c99ae3 commit 71c1647
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/docstring/templates/doxygen-notypes.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,30 @@
@brief {{summaryPlaceholder}}

{{extendedSummaryPlaceholder}}
{{#parametersExist}}

{{#args}}
@param {{var}}: {{descriptionPlaceholder}}
{{/args}}
{{#kwargs}}
@param {{var}}: {{descriptionPlaceholder}}. Defaults to {{&default}}.
{{/kwargs}}
{{/parametersExist}}
{{#returnsExist}}

{{#returns}}
@return {{descriptionPlaceholder}}
@return: {{descriptionPlaceholder}}
{{/returns}}
{{/returnsExist}}
{{#exceptionsExist}}

{{#exceptions}}
@exception {{descriptionPlaceholder}}
@exception: {{descriptionPlaceholder}}
{{/exceptions}}
{{/exceptionsExist}}
{{#yieldsExist}}

{{#yields}}
@returns {{descriptionPlaceholder}}
@returns: {{descriptionPlaceholder}}
{{/yields}}
{{/yieldsExist}}
8 changes: 8 additions & 0 deletions src/docstring/templates/doxygen.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,30 @@
@brief {{summaryPlaceholder}}

{{extendedSummaryPlaceholder}}
{{#parametersExist}}

{{#args}}
@param {{var}} ({{typePlaceholder}}): {{descriptionPlaceholder}}
{{/args}}
{{#kwargs}}
@param {{var}} ({{typePlaceholder}}, optional): {{descriptionPlaceholder}}. Defaults to {{&default}}.
{{/kwargs}}
{{/parametersExist}}
{{#returnsExist}}

{{#returns}}
@return ({{typePlaceholder}}): {{descriptionPlaceholder}}
{{/returns}}
{{/returnsExist}}
{{#exceptionsExist}}

{{#exceptions}}
@exception {{type}}: {{descriptionPlaceholder}}
{{/exceptions}}
{{/exceptionsExist}}
{{#yieldsExist}}

{{#yields}}
@returns {{typePlaceholder}}: {{descriptionPlaceholder}}
{{/yields}}
{{/yieldsExist}}

0 comments on commit 71c1647

Please sign in to comment.