aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/_Translate.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-08-16 23:47:04 +0200
committerumarcor <unai.martinezcorral@ehu.eus>2021-08-23 16:35:36 +0200
commit3f0308a5f807269aa5691fa1c704c0e9147d45f1 (patch)
treee29bc841c2720f5668a71c8b18c9aa8151b84645 /pyGHDL/dom/_Translate.py
parentdb48ba4042769646676f7ffb981149cbb5e52740 (diff)
downloadghdl-3f0308a5f807269aa5691fa1c704c0e9147d45f1.tar.gz
ghdl-3f0308a5f807269aa5691fa1c704c0e9147d45f1.tar.bz2
ghdl-3f0308a5f807269aa5691fa1c704c0e9147d45f1.zip
Handle contexts.
Diffstat (limited to 'pyGHDL/dom/_Translate.py')
-rw-r--r--pyGHDL/dom/_Translate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py
index 18a4d9fda..00194cb09 100644
--- a/pyGHDL/dom/_Translate.py
+++ b/pyGHDL/dom/_Translate.py
@@ -717,7 +717,7 @@ def GetDeclaredItemsFromChainedNodes(
elif kind == nodes.Iir_Kind.Package_Declaration:
from pyGHDL.dom.DesignUnit import Package
- yield Package.parse(item)
+ yield Package.parse(item, None) # TODO: Can it have a context?
elif kind == nodes.Iir_Kind.Package_Instantiation_Declaration:
from pyGHDL.dom.DesignUnit import PackageInstantiation