diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-07-26 00:39:26 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:31 +0200 |
commit | 587ec3d1822b34875c12d7daf79bbc3dfcb13533 (patch) | |
tree | 7d21c66d648ac817965634f2bcf77521ed843e3b | |
parent | ca39821dc013a877a8dbdfabbc3b861eb4d4d2e3 (diff) | |
download | ghdl-587ec3d1822b34875c12d7daf79bbc3dfcb13533.tar.gz ghdl-587ec3d1822b34875c12d7daf79bbc3dfcb13533.tar.bz2 ghdl-587ec3d1822b34875c12d7daf79bbc3dfcb13533.zip |
Wrap typeMarks in a SimpleName.
-rw-r--r-- | pyGHDL/dom/_Translate.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py index 46cb352c7..2cceec4e3 100644 --- a/pyGHDL/dom/_Translate.py +++ b/pyGHDL/dom/_Translate.py @@ -348,9 +348,10 @@ def GetScalarConstrainedSubtypeFromNode( ) -> ConstrainedScalarSubtypeSymbol: typeMark = nodes.Get_Subtype_Type_Mark(subtypeIndicationNode) typeMarkName = GetNameOfNode(typeMark) + simpleTypeMark = SimpleName(typeMark, typeMarkName) rangeConstraint = nodes.Get_Range_Constraint(subtypeIndicationNode) r = GetRangeFromNode(rangeConstraint) - return ConstrainedScalarSubtypeSymbol(subtypeIndicationNode, typeMarkName, r) + return ConstrainedScalarSubtypeSymbol(subtypeIndicationNode, simpleTypeMark, r) @export @@ -359,10 +360,11 @@ def GetCompositeConstrainedSubtypeFromNode( ) -> ConstrainedCompositeSubtypeSymbol: typeMark = nodes.Get_Subtype_Type_Mark(subtypeIndicationNode) typeMarkName = GetNameOfNode(typeMark) + simpleTypeMark = SimpleName(typeMark, typeMarkName) constraints = GetArrayConstraintsFromSubtypeIndication(subtypeIndicationNode) return ConstrainedCompositeSubtypeSymbol( - subtypeIndicationNode, typeMarkName, constraints + subtypeIndicationNode, simpleTypeMark, constraints ) |