diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2023-04-13 23:44:29 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2023-04-13 23:44:29 +0200 |
commit | e95d45e41d32c0d73179cea22c8b3ea812eafb41 (patch) | |
tree | 3eb2158353af41195a8a614bea84207e21b922f1 /pyGHDL/dom/Expression.py | |
parent | f11446e1cfaf0ed4db2d43ec3b9b421de313b6ae (diff) | |
download | ghdl-e95d45e41d32c0d73179cea22c8b3ea812eafb41.tar.gz ghdl-e95d45e41d32c0d73179cea22c8b3ea812eafb41.tar.bz2 ghdl-e95d45e41d32c0d73179cea22c8b3ea812eafb41.zip |
Reworking symbols.
Diffstat (limited to 'pyGHDL/dom/Expression.py')
-rw-r--r-- | pyGHDL/dom/Expression.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyGHDL/dom/Expression.py b/pyGHDL/dom/Expression.py index 608801af6..0d8dbfba7 100644 --- a/pyGHDL/dom/Expression.py +++ b/pyGHDL/dom/Expression.py @@ -488,7 +488,7 @@ class Aggregate(VHDLModel_Aggregate, DOMMixin): from pyGHDL.dom._Translate import ( GetExpressionFromNode, GetRangeFromNode, - GetNameFromNode, + GetName, ) choices = [] @@ -512,7 +512,7 @@ class Aggregate(VHDLModel_Aggregate, DOMMixin): nodes.Iir_Kind.Attribute_Name, nodes.Iir_Kind.Parenthesis_Name, ): - rng = GetNameFromNode(choiceRange) + rng = GetName(choiceRange) else: pos = Position.parse(item) raise DOMException( @@ -521,7 +521,7 @@ class Aggregate(VHDLModel_Aggregate, DOMMixin): choices.append(RangedAggregateElement(item, rng, value)) elif kind == nodes.Iir_Kind.Choice_By_Name: - name = GetNameFromNode(nodes.Get_Choice_Name(item)) + name = GetName(nodes.Get_Choice_Name(item)) symbol = Symbol(item, name) choices.append(NamedAggregateElement(item, symbol, value)) elif kind == nodes.Iir_Kind.Choice_By_Others: |