diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-08-23 00:13:43 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:37 +0200 |
commit | 8fb4da723067b2ff99050f9ef9fc0bbd3c835ef4 (patch) | |
tree | 33ad94141fb8c12a870ee9e2e31f81f7c4ac8d56 /pyGHDL/dom/Sequential.py | |
parent | 31b289e7cf3d3aa88790823ef70646475f5b14e9 (diff) | |
download | ghdl-8fb4da723067b2ff99050f9ef9fc0bbd3c835ef4.tar.gz ghdl-8fb4da723067b2ff99050f9ef9fc0bbd3c835ef4.tar.bz2 ghdl-8fb4da723067b2ff99050f9ef9fc0bbd3c835ef4.zip |
Some fixes.
Diffstat (limited to 'pyGHDL/dom/Sequential.py')
-rw-r--r-- | pyGHDL/dom/Sequential.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/pyGHDL/dom/Sequential.py b/pyGHDL/dom/Sequential.py index fe7c83614..4f511c16f 100644 --- a/pyGHDL/dom/Sequential.py +++ b/pyGHDL/dom/Sequential.py @@ -34,7 +34,10 @@ from typing import Iterable from pydecor import export -from pyGHDL.dom.Concurrent import WaveformElement # TODO: move out from concurrent? +from pyGHDL.dom.Concurrent import ( + WaveformElement, + ParameterAssociationItem, +) # TODO: move out from concurrent? from pyGHDL.dom.Range import Range from pyVHDLModel.SyntaxModel import ( IfBranch as VHDLModel_IfBranch, @@ -350,11 +353,11 @@ class ForLoopStatement(VHDLModel_ForLoopStatement, DOMMixin): self, loopNode: Iir, loopIndex: str, - range: Range, + rng: Range, statements: Iterable[SequentialStatement] = None, label: str = None, ): - super().__init__(loopIndex, range, statements, label) + super().__init__(loopIndex, rng, statements, label) DOMMixin.__init__(self, loopNode) @classmethod @@ -430,7 +433,7 @@ class SequentialProcedureCall(VHDLModel_SequentialProcedureCall, DOMMixin): self, callNode: Iir, procedureName: Name, - parameterMappings: Iterable, + parameterMappings: Iterable[ParameterAssociationItem], label: str = None, ): super().__init__(procedureName, parameterMappings, label) |