diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-11-30 23:29:54 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-12-23 23:42:29 +0100 |
commit | 3cca269570b68d0edb45dbe256fc6e6360909bf0 (patch) | |
tree | 219be8c95ddffd1b6c7329c713255cd898d63554 /pyGHDL/dom | |
parent | 4280385c83d349906e799cf0f32e6e7a4a491124 (diff) | |
download | ghdl-3cca269570b68d0edb45dbe256fc6e6360909bf0.tar.gz ghdl-3cca269570b68d0edb45dbe256fc6e6360909bf0.tar.bz2 ghdl-3cca269570b68d0edb45dbe256fc6e6360909bf0.zip |
Collect file header comments as documentation for the VHDL document.
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/NonStandard.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyGHDL/dom/NonStandard.py b/pyGHDL/dom/NonStandard.py index 7a38d60ce..eb6afd3c6 100644 --- a/pyGHDL/dom/NonStandard.py +++ b/pyGHDL/dom/NonStandard.py @@ -64,7 +64,7 @@ from pyGHDL.libghdl.flags import Flag_Gather_Comments from pyGHDL.libghdl.vhdl import nodes, sem_lib from pyGHDL.libghdl.vhdl.parse import Flag_Parse_Parenthesis from pyGHDL.dom import DOMException, Position -from pyGHDL.dom._Utils import GetIirKindOfNode, CheckForErrors, GetNameOfNode +from pyGHDL.dom._Utils import GetIirKindOfNode, CheckForErrors, GetNameOfNode, GetDocumentationOfNode from pyGHDL.dom.Names import SimpleName from pyGHDL.dom.DesignUnit import ( Entity, @@ -170,6 +170,7 @@ class Document(VHDLModel_Document): def translate(self): firstUnit = nodes.Get_First_Design_Unit(self.__ghdlFile) + self._documentation = GetDocumentationOfNode(firstUnit) for unit in utils.chain_iter(firstUnit): libraryUnit = nodes.Get_Library_Unit(unit) |