diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-08-17 20:19:59 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:36 +0200 |
commit | 94a3027f9108f0d81a84f7d52a3e4afe93c1eb66 (patch) | |
tree | 4d79d6a0fbe74ee11faed36f69ddae198b450d4a /pyGHDL/dom | |
parent | 8c0f8e0ad95c53beac983546550222117c6a639c (diff) | |
download | ghdl-94a3027f9108f0d81a84f7d52a3e4afe93c1eb66.tar.gz ghdl-94a3027f9108f0d81a84f7d52a3e4afe93c1eb66.tar.bz2 ghdl-94a3027f9108f0d81a84f7d52a3e4afe93c1eb66.zip |
Also handle parameters for sequential procedure calls.
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/Sequential.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/pyGHDL/dom/Sequential.py b/pyGHDL/dom/Sequential.py index 28b6f2b98..f752b432d 100644 --- a/pyGHDL/dom/Sequential.py +++ b/pyGHDL/dom/Sequential.py @@ -442,18 +442,17 @@ class SequentialProcedureCall(VHDLModel_SequentialProcedureCall, DOMMixin): @classmethod def parse(cls, callNode: Iir, label: str) -> "SequentialProcedureCall": - from pyGHDL.dom._Utils import GetIirKindOfNode - from pyGHDL.dom._Translate import GetNameFromNode + from pyGHDL.dom._Translate import GetNameFromNode, GetParameterMapAspect call = nodes.Get_Procedure_Call(callNode) - prefix = nodes.Get_Prefix(call) + prefix = nodes.Get_Prefix(call) procedureName = GetNameFromNode(prefix) + parameterAssociations = GetParameterMapAspect( + nodes.Get_Parameter_Association_Chain(callNode) + ) - # TODO: parameter mappings - parameterMappings = [] - - return cls(callNode, procedureName, parameterMappings, label) + return cls(callNode, procedureName, parameterAssociations, label) @export |