aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/_Translate.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/dom/_Translate.py')
-rw-r--r--pyGHDL/dom/_Translate.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py
index 89f25138f..1c97d403e 100644
--- a/pyGHDL/dom/_Translate.py
+++ b/pyGHDL/dom/_Translate.py
@@ -270,6 +270,10 @@ def GetAnonymousTypeFromNode(node: Iir) -> BaseType:
r = GetRangeFromNode(typeDefinition)
return IntegerType(node, typeName, r)
+ elif kind == nodes.Iir_Kind.Parenthesis_Name:
+ n = GetNameFromNode(typeDefinition)
+
+ return IntegerType(node, typeName, n)
elif kind == nodes.Iir_Kind.Physical_Type_Definition:
return PhysicalType.parse(typeName, typeDefinition)