aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/dom')
-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 8229755f3..fc8f86b42 100644
--- a/pyGHDL/dom/_Translate.py
+++ b/pyGHDL/dom/_Translate.py
@@ -270,7 +270,7 @@ def GetAnonymousTypeFromNode(node: Iir) -> BaseType:
r = GetRangeFromNode(typeDefinition)
return IntegerType(node, typeName, r)
- elif kind == nodes.Iir_Kind.Parenthesis_Name:
+ elif kind in (nodes.Iir_Kind.Attribute_Name, nodes.Iir_Kind.Parenthesis_Name):
n = GetNameFromNode(typeDefinition)
return IntegerType(node, typeName, n)