diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-07-30 02:14:33 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:33 +0200 |
commit | 31eb230938730059254bc4778bf1eff14015221f (patch) | |
tree | 92322e74f08b9075381b4ed66f3580a38d38db3f /pyGHDL/dom | |
parent | 21a1a3b2ce0be2d9ada1c2d112d225f5d773f71a (diff) | |
download | ghdl-31eb230938730059254bc4778bf1eff14015221f.tar.gz ghdl-31eb230938730059254bc4778bf1eff14015221f.tar.bz2 ghdl-31eb230938730059254bc4778bf1eff14015221f.zip |
Fixed handling of declarations with multiple identifiers, if this is the last item in the chain.
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/_Translate.py | 8 |
1 files changed, 8 insertions, 0 deletions
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) |