diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-23 13:29:23 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-23 13:29:23 +0200 |
commit | 11f1ebbc80250555474cfe22e1db10553e112a11 (patch) | |
tree | d50bd491e0f077a951ce81332546a6eb29e2e156 /pyGHDL/dom/formatting | |
parent | d97e2079a633736d0323e915cabff5f91cfd4ebe (diff) | |
download | ghdl-11f1ebbc80250555474cfe22e1db10553e112a11.tar.gz ghdl-11f1ebbc80250555474cfe22e1db10553e112a11.tar.bz2 ghdl-11f1ebbc80250555474cfe22e1db10553e112a11.zip |
Handle 'Subtype_Definition' in record definitions.
Diffstat (limited to 'pyGHDL/dom/formatting')
-rw-r--r-- | pyGHDL/dom/formatting/prettyprint.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py index 3a0a49cc1..10def8503 100644 --- a/pyGHDL/dom/formatting/prettyprint.py +++ b/pyGHDL/dom/formatting/prettyprint.py @@ -40,7 +40,7 @@ from pyGHDL.dom.InterfaceItem import ( ) from pyGHDL.dom.Symbol import ( SimpleSubTypeSymbol, - ConstrainedSubTypeSymbol, + ConstrainedCompositeSubTypeSymbol, ) @@ -401,7 +401,7 @@ class PrettyPrint: def formatSubtypeIndication(self, subTypeIndication, entity: str, name: str) -> str: if isinstance(subTypeIndication, SimpleSubTypeSymbol): return "{type}".format(type=subTypeIndication.SymbolName) - elif isinstance(subTypeIndication, ConstrainedSubTypeSymbol): + elif isinstance(subTypeIndication, ConstrainedCompositeSubTypeSymbol): ranges = [str(c.Range) for c in subTypeIndication.Constraints] constraints = ", ".join(ranges) |