aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/Subprogram.py
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2023-04-15 10:43:09 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2023-04-15 10:43:09 +0200
commitd67bfa80c0c7d013a99636d7959cf433000ab2e7 (patch)
tree4b5f37cd0e0f2aeb460d2d188bc15f1181e9614c /pyGHDL/dom/Subprogram.py
parentbee2616e7fed89c042f79592ddfafa2f6aea451e (diff)
downloadghdl-d67bfa80c0c7d013a99636d7959cf433000ab2e7.tar.gz
ghdl-d67bfa80c0c7d013a99636d7959cf433000ab2e7.tar.bz2
ghdl-d67bfa80c0c7d013a99636d7959cf433000ab2e7.zip
Modifications due to changes in Symbols.
Diffstat (limited to 'pyGHDL/dom/Subprogram.py')
-rw-r--r--pyGHDL/dom/Subprogram.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyGHDL/dom/Subprogram.py b/pyGHDL/dom/Subprogram.py
index 17661b8b2..6bb13dcd9 100644
--- a/pyGHDL/dom/Subprogram.py
+++ b/pyGHDL/dom/Subprogram.py
@@ -67,6 +67,7 @@ class Function(VHDLModel_Function, DOMMixin):
@classmethod
def parse(cls, functionNode: Iir) -> "Function":
from pyGHDL.dom._Translate import (
+ GetName,
GetGenericsFromChainedNodes,
GetParameterFromChainedNodes,
)
@@ -78,7 +79,7 @@ class Function(VHDLModel_Function, DOMMixin):
parameters = GetParameterFromChainedNodes(nodes.Get_Interface_Declaration_Chain(functionNode))
returnType = nodes.Get_Return_Type_Mark(functionNode)
- returnTypeName = GetNameOfNode(returnType)
+ returnTypeName = GetName(returnType)
returnTypeSymbol = SimpleSubtypeSymbol(returnType, returnTypeName)
return cls(functionNode, functionName, returnTypeSymbol, generics, parameters, documentation)