aboutsummaryrefslogtreecommitdiffstats
path: root/src/vhdl/vhdl-nodes.ads
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2023-03-22 04:33:34 +0100
committerTristan Gingold <tgingold@free.fr>2023-03-22 04:44:18 +0100
commit3f9512b68752421200b4fc34645a25a494c01c9f (patch)
tree4100617d9f3377993e5e5f7fc392370ff1fa77b1 /src/vhdl/vhdl-nodes.ads
parent19dab14a7452c793dde71bf599202cb7783ba376 (diff)
downloadghdl-3f9512b68752421200b4fc34645a25a494c01c9f.tar.gz
ghdl-3f9512b68752421200b4fc34645a25a494c01c9f.tar.bz2
ghdl-3f9512b68752421200b4fc34645a25a494c01c9f.zip
vhdl: add Set/Get_Immediate_Body_Flag (for package instantiation)
Diffstat (limited to 'src/vhdl/vhdl-nodes.ads')
-rw-r--r--src/vhdl/vhdl-nodes.ads9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vhdl/vhdl-nodes.ads b/src/vhdl/vhdl-nodes.ads
index 0cd02d637..8601159db 100644
--- a/src/vhdl/vhdl-nodes.ads
+++ b/src/vhdl/vhdl-nodes.ads
@@ -1074,6 +1074,8 @@ package Vhdl.Nodes is
-- Iir_Kind_Package_Instantiation_Body (Short)
-- Note: a body is not a declaration, that's the reason why there is no
-- _declaration suffix in the name.
+ -- Note: Package_Instantiation_Body represent the place of the body when
+ -- it is not immediately after the instantiation.
--
-- Get/Set_Parent (Field0)
-- Get/Set_Design_Unit (Alias Field0)
@@ -1124,6 +1126,9 @@ package Vhdl.Nodes is
-- For macro-expanded packages: the body.
-- Get/Set_Instance_Package_Body (Field4)
--
+ -- For macro-expanded packages: true if the body appears immediately after.
+ -- Get/Set_Immediate_Body_Flag (Flag5)
+ --
-- Get/Set_Visible_Flag (Flag4)
--
-- Get/Set_End_Has_Reserved_Id (Flag8)
@@ -8152,6 +8157,10 @@ package Vhdl.Nodes is
function Get_Need_Body (Decl : Iir_Package_Declaration) return Boolean;
procedure Set_Need_Body (Decl : Iir_Package_Declaration; Flag : Boolean);
+ -- Field: Flag5
+ function Get_Immediate_Body_Flag (Decl : Iir) return Boolean;
+ procedure Set_Immediate_Body_Flag (Decl : Iir; Flag : Boolean);
+
-- Field: Flag2
function Get_Macro_Expanded_Flag (Decl : Iir) return Boolean;
procedure Set_Macro_Expanded_Flag (Decl : Iir; Flag : Boolean);