diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-08-06 06:58:39 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-08-06 09:16:19 +0200 |
commit | 3b80a2e5a9545422e9808f6f3b3f9c4a2421433b (patch) | |
tree | 22ea684d58cd77e94b780e8e5c9499c3c67fbac1 /pyGHDL/dom | |
parent | ece6e78f537b4f16b020d2eb258038d00a794559 (diff) | |
download | ghdl-3b80a2e5a9545422e9808f6f3b3f9c4a2421433b.tar.gz ghdl-3b80a2e5a9545422e9808f6f3b3f9c4a2421433b.tar.bz2 ghdl-3b80a2e5a9545422e9808f6f3b3f9c4a2421433b.zip |
vhdl: introduce iir_kind_association_element_by_name
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/_Translate.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py index a9ead8c2c..d24ac33bc 100644 --- a/pyGHDL/dom/_Translate.py +++ b/pyGHDL/dom/_Translate.py @@ -176,7 +176,8 @@ def GetAssociations(node: Iir) -> List: for item in utils.chain_iter(nodes.Get_Association_Chain(node)): kind = GetIirKindOfNode(item) - if kind == nodes.Iir_Kind.Association_Element_By_Expression: + if kind in (nodes.Iir_Kind.Association_Element_By_Expression, + nodes.Iir_Kind.Association_Element_By_Name): actual = nodes.Get_Actual(item) expr = GetExpressionFromNode(actual) |