aboutsummaryrefslogtreecommitdiffstats
path: root/src/psl/psl-nodes.adb
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2020-03-11 21:09:39 +0100
committerTristan Gingold <tgingold@free.fr>2020-03-13 06:30:27 +0100
commitd70084ccb149ff4f5fca072c672b1f3d040358a9 (patch)
tree1b2cb2172368b02be2f5c92bab1f59583ec4dec9 /src/psl/psl-nodes.adb
parent5c398db1b18a346cf2cb25acac07b068ccd7deee (diff)
downloadghdl-d70084ccb149ff4f5fca072c672b1f3d040358a9.tar.gz
ghdl-d70084ccb149ff4f5fca072c672b1f3d040358a9.tar.bz2
ghdl-d70084ccb149ff4f5fca072c672b1f3d040358a9.zip
psl: keep denoting names in the PSL ast.
Diffstat (limited to 'src/psl/psl-nodes.adb')
-rw-r--r--src/psl/psl-nodes.adb20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/psl/psl-nodes.adb b/src/psl/psl-nodes.adb
index 99b449d22..629041a73 100644
--- a/src/psl/psl-nodes.adb
+++ b/src/psl/psl-nodes.adb
@@ -374,7 +374,8 @@ package body PSL.Nodes is
| N_False
| N_True
| N_Boolean_Parameter
- | N_Paren_Bool =>
+ | N_Paren_Bool
+ | N_HDL_Bool =>
return Type_Boolean;
when N_Number
| N_Const_Parameter =>
@@ -460,6 +461,7 @@ package body PSL.Nodes is
| N_Or_Bool
| N_Imp_Bool
| N_HDL_Expr
+ | N_HDL_Bool
| N_False
| N_True
| N_EOS
@@ -854,6 +856,22 @@ package body PSL.Nodes is
Set_Field2 (N, Int32_To_Node (Idx));
end Set_HDL_Index;
+ function Get_HDL_Hash (N : Node) return Node is
+ begin
+ pragma Assert (N /= Null_Node);
+ pragma Assert (Has_HDL_Hash (Get_Kind (N)),
+ "no field HDL_Hash");
+ return Get_Field5 (N);
+ end Get_HDL_Hash;
+
+ procedure Set_HDL_Hash (N : Node; H : Node) is
+ begin
+ pragma Assert (N /= Null_Node);
+ pragma Assert (Has_HDL_Hash (Get_Kind (N)),
+ "no field HDL_Hash");
+ Set_Field5 (N, H);
+ end Set_HDL_Hash;
+
function Get_Presence (N : Node) return PSL_Presence_Kind is
begin
pragma Assert (N /= Null_Node);