From f956044c3045992f37f23d88d9e51a1de8593948 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 21 Jun 2021 23:18:29 +0200 Subject: Implemented handling of generic parameters to subprograms. --- pyGHDL/dom/formatting/prettyprint.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'pyGHDL/dom/formatting/prettyprint.py') 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): -- cgit v1.2.3