diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-11-20 20:01:14 +0100 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-11-20 20:01:14 +0100 |
commit | f722f900f4211bbddc0f432ce652e68313807ee0 (patch) | |
tree | b91ab3b2768acb6b5323fa1b9aebfecc163662fc /src/vhdl/vhdl-comments.ads | |
parent | a4f4840bfee3adf2eff26ffb9e5c68182d034dd4 (diff) | |
download | ghdl-f722f900f4211bbddc0f432ce652e68313807ee0.tar.gz ghdl-f722f900f4211bbddc0f432ce652e68313807ee0.tar.bz2 ghdl-f722f900f4211bbddc0f432ce652e68313807ee0.zip |
pyGHDL: add file_comments.py
Diffstat (limited to 'src/vhdl/vhdl-comments.ads')
-rw-r--r-- | src/vhdl/vhdl-comments.ads | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-comments.ads b/src/vhdl/vhdl-comments.ads index b9b63b667..1d9694a49 100644 --- a/src/vhdl/vhdl-comments.ads +++ b/src/vhdl/vhdl-comments.ads @@ -20,9 +20,18 @@ -- Since the names are not prefixed, this package is expected to be with'ed -- but not to be use'd. +with Types; use Types; +with File_Comments; use File_Comments; + with Vhdl.Nodes; use Vhdl.Nodes; package Vhdl.Comments is -- Attach previously scanned comments to node N. procedure Gather_Comments (N : Iir); + + -- Return the first comment attached to node N. FILE must be the file + -- of N. + -- Use File_Comments to iterate on comments. + function Find_First_Comment (File : Source_File_Entry; N : Node) + return Comment_Index; end Vhdl.Comments; |