aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2023-04-11 21:39:10 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2023-04-11 21:39:10 +0200
commit91c7a148b792d795d59bfc0569fca057b049cb61 (patch)
tree80f400fc13e57ee6e57c1a17d826f0127dab3316
parented828023f1c5607180ddd0fea2d924fe8457c41b (diff)
downloadghdl-91c7a148b792d795d59bfc0569fca057b049cb61.tar.gz
ghdl-91c7a148b792d795d59bfc0569fca057b049cb61.tar.bz2
ghdl-91c7a148b792d795d59bfc0569fca057b049cb61.zip
Disabled some code due to problems with symbols.
-rw-r--r--pyGHDL/dom/formatting/prettyprint.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py
index 949adf99f..6f56dfb60 100644
--- a/pyGHDL/dom/formatting/prettyprint.py
+++ b/pyGHDL/dom/formatting/prettyprint.py
@@ -442,13 +442,14 @@ class PrettyPrint:
def formatSubtypeIndication(self, subtypeIndication, entity: str, name: str) -> str:
if isinstance(subtypeIndication, SimpleSubtypeSymbol):
- return f"{subtypeIndication.SymbolName}"
+ return f"{subtypeIndication.Identifier}"
elif isinstance(subtypeIndication, ConstrainedCompositeSubtypeSymbol):
constraints = []
- for constraint in subtypeIndication.Constraints:
- constraints.append(str(constraint))
+ # FIXME: disabled due to problems with symbols
+ # for constraint in subtypeIndication.Constraints:
+ # constraints.append(str(constraint))
- return f"{subtypeIndication.SymbolName}({', '.join(constraints)})"
+ return f"{subtypeIndication.Identifier}({', '.join(constraints)})"
else:
raise PrettyPrintException(
f"Unhandled subtype kind '{subtypeIndication.__class__.__name__}' for {entity} '{name}'."