diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-21 23:18:29 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-22 12:28:25 +0200 |
commit | f956044c3045992f37f23d88d9e51a1de8593948 (patch) | |
tree | 439f7b1b958ccba41a7f35cc711415f5345be514 /pyGHDL/dom/formatting/prettyprint.py | |
parent | 11bd75f611a892af0e20e913a9580d43c23e610b (diff) | |
download | ghdl-f956044c3045992f37f23d88d9e51a1de8593948.tar.gz ghdl-f956044c3045992f37f23d88d9e51a1de8593948.tar.bz2 ghdl-f956044c3045992f37f23d88d9e51a1de8593948.zip |
Implemented handling of generic parameters to subprograms.
Diffstat (limited to 'pyGHDL/dom/formatting/prettyprint.py')
-rw-r--r-- | pyGHDL/dom/formatting/prettyprint.py | 5 |
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): |