diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-08-23 09:02:47 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:37 +0200 |
commit | 8b98e2883b40b00922c9944c2470211ee055a9a5 (patch) | |
tree | 05a31686d247ef71cb512ac79643f3a309e72eeb /pyGHDL/dom/_Translate.py | |
parent | 8fb4da723067b2ff99050f9ef9fc0bbd3c835ef4 (diff) | |
download | ghdl-8b98e2883b40b00922c9944c2470211ee055a9a5.tar.gz ghdl-8b98e2883b40b00922c9944c2470211ee055a9a5.tar.bz2 ghdl-8b98e2883b40b00922c9944c2470211ee055a9a5.zip |
Fixes due to a bug in pyVHDLModel. Name Context was used twice.
Diffstat (limited to 'pyGHDL/dom/_Translate.py')
-rw-r--r-- | pyGHDL/dom/_Translate.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyGHDL/dom/_Translate.py b/pyGHDL/dom/_Translate.py index 626ffd3fa..d64e38d82 100644 --- a/pyGHDL/dom/_Translate.py +++ b/pyGHDL/dom/_Translate.py @@ -44,9 +44,9 @@ from pyGHDL.dom.Sequential import ( SequentialSimpleSignalAssignment, ) from pyVHDLModel.SyntaxModel import ( - Constraint, + ConstraintUnion, Direction, - Expression, + ExpressionUnion, SubtypeOrSymbol, BaseType, GenericInterfaceItem, @@ -225,7 +225,7 @@ def GetAssociations(node: Iir) -> List: @export def GetArrayConstraintsFromSubtypeIndication( subtypeIndication: Iir, -) -> List[Constraint]: +) -> List[ConstraintUnion]: constraints = [] for constraint in utils.flist_iter( nodes.Get_Index_Constraint_List(subtypeIndication) @@ -467,7 +467,7 @@ __EXPRESSION_TRANSLATION = { @export -def GetExpressionFromNode(node: Iir) -> Expression: +def GetExpressionFromNode(node: Iir) -> ExpressionUnion: kind = GetIirKindOfNode(node) try: |