diff options
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) |