aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/formatting
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-21 23:18:29 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-22 12:28:25 +0200
commitf956044c3045992f37f23d88d9e51a1de8593948 (patch)
tree439f7b1b958ccba41a7f35cc711415f5345be514 /pyGHDL/dom/formatting
parent11bd75f611a892af0e20e913a9580d43c23e610b (diff)
downloadghdl-f956044c3045992f37f23d88d9e51a1de8593948.tar.gz
ghdl-f956044c3045992f37f23d88d9e51a1de8593948.tar.bz2
ghdl-f956044c3045992f37f23d88d9e51a1de8593948.zip
Implemented handling of generic parameters to subprograms.
Diffstat (limited to 'pyGHDL/dom/formatting')
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py
index 13f18f729..f19125811 100644
--- a/pyGHDL/dom/formatting/prettyprint.py
+++ b/pyGHDL/dom/formatting/prettyprint.py
@@ -341,9 +341,8 @@ class PrettyPrint:
)
elif isinstance(item, Function):
buffer.append(
- "{prefix}- function {name}".format(
- prefix=prefix,
- name=item.Name,
+ "{prefix}- function {name} return {returnType!s}".format(
+ prefix=prefix, name=item.Name, returnType=item.ReturnType
)
)
elif isinstance(item, Procedure):