aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/Attribute.py
diff options
context:
space:
mode:
authorUnai Martinez-Corral <38422348+umarcor@users.noreply.github.com>2023-04-19 20:27:33 +0200
committerGitHub <noreply@github.com>2023-04-19 20:27:33 +0200
commitcc5cf36c2d2e87eaf01b608c7391abdba8f9fff7 (patch)
tree49769a8bc72fd1d950074a74f38475016df2b11b /pyGHDL/dom/Attribute.py
parent6544b839fe6dceb56cb544bc4f69f0ab28100172 (diff)
parent989ec4ce0d43b90a5ada0a582c5b1ec6e610cb06 (diff)
downloadghdl-cc5cf36c2d2e87eaf01b608c7391abdba8f9fff7.tar.gz
ghdl-cc5cf36c2d2e87eaf01b608c7391abdba8f9fff7.tar.bz2
ghdl-cc5cf36c2d2e87eaf01b608c7391abdba8f9fff7.zip
pyGHDL: Reworked Symbols and Names (#2412)
Diffstat (limited to 'pyGHDL/dom/Attribute.py')
-rw-r--r--pyGHDL/dom/Attribute.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyGHDL/dom/Attribute.py b/pyGHDL/dom/Attribute.py
index 7133c86a2..46ea109aa 100644
--- a/pyGHDL/dom/Attribute.py
+++ b/pyGHDL/dom/Attribute.py
@@ -45,7 +45,7 @@ from pyGHDL.libghdl.vhdl import nodes
from pyGHDL.libghdl.vhdl.tokens import Tok
from pyGHDL.dom import DOMMixin, Position, DOMException, Expression
from pyGHDL.dom._Utils import GetNameOfNode, GetIirKindOfNode, GetDocumentationOfNode
-from pyGHDL.dom._Translate import GetNameFromNode, GetExpressionFromNode
+from pyGHDL.dom._Translate import GetName, GetExpressionFromNode
from pyGHDL.dom.Names import SimpleName
from pyGHDL.dom.Symbol import SimpleSubtypeSymbol
@@ -63,7 +63,7 @@ class Attribute(VHDLModel_Attribute, DOMMixin):
subtypeMark = nodes.Get_Type_Mark(attributeNode)
subtypeName = GetNameOfNode(subtypeMark)
- subtype = SimpleSubtypeSymbol(subtypeMark, subtypeName)
+ subtype = SimpleSubtypeSymbol(subtypeMark, SimpleName(subtypeMark, subtypeName))
return cls(attributeNode, name, subtype, documentation)
@@ -109,7 +109,7 @@ class AttributeSpecification(VHDLModel_AttributeSpecification, DOMMixin):
@classmethod
def parse(cls, attributeNode: Iir) -> "AttributeSpecification":
attributeDesignator = nodes.Get_Attribute_Designator(attributeNode)
- attributeName = GetNameFromNode(attributeDesignator)
+ attributeName = GetName(attributeDesignator)
documentation = GetDocumentationOfNode(attributeNode)
names = []