From 31eb230938730059254bc4778bf1eff14015221f Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Fri, 30 Jul 2021 02:14:33 +0200 Subject: Fixed handling of declarations with multiple identifiers, if this is the last item in the chain. --- pyGHDL/dom/_Translate.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'pyGHDL/dom') diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py index bb96cf8c6..8a76f8a4f 100644 --- a/pyGHDL/dom/_Translate.py +++ b/pyGHDL/dom/_Translate.py @@ -499,6 +499,8 @@ def GetGenericsFromChainedNodes( else: generic = nextGeneric break + else: + generic = nodes.Null_Iir else: generic = nodes.Get_Chain(generic) @@ -552,6 +554,8 @@ def GetPortsFromChainedNodes( else: port = nextPort break + else: + port = nodes.Null_Iir else: port = nodes.Get_Chain(port) @@ -618,6 +622,8 @@ def GetParameterFromChainedNodes( else: parameter = nextParameter break + else: + parameter = nodes.Null_Iir else: parameter = nodes.Get_Chain(parameter) @@ -748,6 +754,8 @@ def GetDeclaredItemsFromChainedNodes( else: item = nextItem break + else: + item = nodes.Null_Iir else: item = nodes.Get_Chain(item) -- cgit v1.2.3