diff options
author | Tristan Gingold <tgingold@free.fr> | 2022-08-11 21:15:01 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2022-08-11 21:15:01 +0200 |
commit | 51a346d55f192046583773eb72b515c89c343d45 (patch) | |
tree | 7b8c496aa55654abdcdf39a9fcb4f7b577c2d08f /src/vhdl/vhdl-nodes_meta.adb | |
parent | cdcbb258be1aefa2244b3a262863544d04d686f8 (diff) | |
download | ghdl-51a346d55f192046583773eb72b515c89c343d45.tar.gz ghdl-51a346d55f192046583773eb72b515c89c343d45.tar.bz2 ghdl-51a346d55f192046583773eb72b515c89c343d45.zip |
vhdl: add support for file subtype. Fix #2174
Diffstat (limited to 'src/vhdl/vhdl-nodes_meta.adb')
-rw-r--r-- | src/vhdl/vhdl-nodes_meta.adb | 539 |
1 files changed, 281 insertions, 258 deletions
diff --git a/src/vhdl/vhdl-nodes_meta.adb b/src/vhdl/vhdl-nodes_meta.adb index 310f31d86..782f21e20 100644 --- a/src/vhdl/vhdl-nodes_meta.adb +++ b/src/vhdl/vhdl-nodes_meta.adb @@ -1309,6 +1309,8 @@ package body Vhdl.Nodes_Meta is return "record_subtype_definition"; when Iir_Kind_Access_Subtype_Definition => return "access_subtype_definition"; + when Iir_Kind_File_Subtype_Definition => + return "file_subtype_definition"; when Iir_Kind_Physical_Subtype_Definition => return "physical_subtype_definition"; when Iir_Kind_Floating_Subtype_Definition => @@ -3055,6 +3057,14 @@ package body Vhdl.Nodes_Meta is Field_Type_Declarator, Field_Parent_Type, Field_Designated_Subtype_Indication, + -- Iir_Kind_File_Subtype_Definition + Field_Resolved_Flag, + Field_Signal_Type_Flag, + Field_Text_File_Flag, + Field_Type_Staticness, + Field_Subtype_Type_Mark, + Field_Type_Declarator, + Field_Parent_Type, -- Iir_Kind_Physical_Subtype_Definition Field_Resolved_Flag, Field_Is_Ref, @@ -5395,263 +5405,264 @@ package body Vhdl.Nodes_Meta is Iir_Kind_Array_Subtype_Definition => 370, Iir_Kind_Record_Subtype_Definition => 383, Iir_Kind_Access_Subtype_Definition => 391, - Iir_Kind_Physical_Subtype_Definition => 401, - Iir_Kind_Floating_Subtype_Definition => 412, - Iir_Kind_Integer_Subtype_Definition => 422, - Iir_Kind_Enumeration_Subtype_Definition => 432, - Iir_Kind_Enumeration_Type_Definition => 443, - Iir_Kind_Integer_Type_Definition => 451, - Iir_Kind_Floating_Type_Definition => 459, - Iir_Kind_Physical_Type_Definition => 470, - Iir_Kind_Range_Expression => 478, - Iir_Kind_Protected_Type_Body => 486, - Iir_Kind_Wildcard_Type_Definition => 490, - Iir_Kind_Foreign_Vector_Type_Definition => 491, - Iir_Kind_Subtype_Definition => 498, - Iir_Kind_Scalar_Nature_Definition => 506, - Iir_Kind_Record_Nature_Definition => 519, - Iir_Kind_Array_Nature_Definition => 533, - Iir_Kind_Array_Subnature_Definition => 548, - Iir_Kind_Overload_List => 549, - Iir_Kind_Foreign_Module => 554, - Iir_Kind_Entity_Declaration => 567, - Iir_Kind_Configuration_Declaration => 577, - Iir_Kind_Context_Declaration => 583, - Iir_Kind_Package_Declaration => 598, - Iir_Kind_Package_Instantiation_Declaration => 612, - Iir_Kind_Vmode_Declaration => 624, - Iir_Kind_Vprop_Declaration => 636, - Iir_Kind_Vunit_Declaration => 649, - Iir_Kind_Package_Body => 657, - Iir_Kind_Architecture_Body => 670, - Iir_Kind_Type_Declaration => 677, - Iir_Kind_Anonymous_Type_Declaration => 683, - Iir_Kind_Subtype_Declaration => 691, - Iir_Kind_Nature_Declaration => 697, - Iir_Kind_Subnature_Declaration => 704, - Iir_Kind_Package_Header => 706, - Iir_Kind_Unit_Declaration => 715, - Iir_Kind_Library_Declaration => 723, - Iir_Kind_Component_Declaration => 733, - Iir_Kind_Attribute_Declaration => 740, - Iir_Kind_Group_Template_Declaration => 746, - Iir_Kind_Group_Declaration => 753, - Iir_Kind_Element_Declaration => 761, - Iir_Kind_Nature_Element_Declaration => 768, - Iir_Kind_Non_Object_Alias_Declaration => 776, - Iir_Kind_Psl_Declaration => 784, - Iir_Kind_Psl_Endpoint_Declaration => 798, - Iir_Kind_Enumeration_Literal => 810, - Iir_Kind_Function_Declaration => 836, - Iir_Kind_Procedure_Declaration => 859, - Iir_Kind_Function_Body => 869, - Iir_Kind_Procedure_Body => 880, - Iir_Kind_Function_Instantiation_Declaration => 891, - Iir_Kind_Procedure_Instantiation_Declaration => 901, - Iir_Kind_Terminal_Declaration => 911, - Iir_Kind_Object_Alias_Declaration => 923, - Iir_Kind_Free_Quantity_Declaration => 935, - Iir_Kind_Spectrum_Quantity_Declaration => 948, - Iir_Kind_Noise_Quantity_Declaration => 960, - Iir_Kind_Across_Quantity_Declaration => 976, - Iir_Kind_Through_Quantity_Declaration => 992, - Iir_Kind_File_Declaration => 1007, - Iir_Kind_Guard_Signal_Declaration => 1021, - Iir_Kind_Signal_Declaration => 1038, - Iir_Kind_Variable_Declaration => 1051, - Iir_Kind_Constant_Declaration => 1065, - Iir_Kind_Iterator_Declaration => 1077, - Iir_Kind_Interface_Constant_Declaration => 1094, - Iir_Kind_Interface_Variable_Declaration => 1110, - Iir_Kind_Interface_Signal_Declaration => 1131, - Iir_Kind_Interface_File_Declaration => 1147, - Iir_Kind_Interface_Quantity_Declaration => 1163, - Iir_Kind_Interface_Terminal_Declaration => 1175, - Iir_Kind_Interface_Type_Declaration => 1187, - Iir_Kind_Interface_Package_Declaration => 1200, - Iir_Kind_Interface_Function_Declaration => 1219, - Iir_Kind_Interface_Procedure_Declaration => 1234, - Iir_Kind_Attribute_Implicit_Declaration => 1237, - Iir_Kind_Suspend_State_Declaration => 1240, - Iir_Kind_Identity_Operator => 1244, - Iir_Kind_Negation_Operator => 1248, - Iir_Kind_Absolute_Operator => 1252, - Iir_Kind_Not_Operator => 1256, - Iir_Kind_Implicit_Condition_Operator => 1260, - Iir_Kind_Condition_Operator => 1264, - Iir_Kind_Reduction_And_Operator => 1268, - Iir_Kind_Reduction_Or_Operator => 1272, - Iir_Kind_Reduction_Nand_Operator => 1276, - Iir_Kind_Reduction_Nor_Operator => 1280, - Iir_Kind_Reduction_Xor_Operator => 1284, - Iir_Kind_Reduction_Xnor_Operator => 1288, - Iir_Kind_And_Operator => 1293, - Iir_Kind_Or_Operator => 1298, - Iir_Kind_Nand_Operator => 1303, - Iir_Kind_Nor_Operator => 1308, - Iir_Kind_Xor_Operator => 1313, - Iir_Kind_Xnor_Operator => 1318, - Iir_Kind_Equality_Operator => 1323, - Iir_Kind_Inequality_Operator => 1328, - Iir_Kind_Less_Than_Operator => 1333, - Iir_Kind_Less_Than_Or_Equal_Operator => 1338, - Iir_Kind_Greater_Than_Operator => 1343, - Iir_Kind_Greater_Than_Or_Equal_Operator => 1348, - Iir_Kind_Match_Equality_Operator => 1353, - Iir_Kind_Match_Inequality_Operator => 1358, - Iir_Kind_Match_Less_Than_Operator => 1363, - Iir_Kind_Match_Less_Than_Or_Equal_Operator => 1368, - Iir_Kind_Match_Greater_Than_Operator => 1373, - Iir_Kind_Match_Greater_Than_Or_Equal_Operator => 1378, - Iir_Kind_Sll_Operator => 1383, - Iir_Kind_Sla_Operator => 1388, - Iir_Kind_Srl_Operator => 1393, - Iir_Kind_Sra_Operator => 1398, - Iir_Kind_Rol_Operator => 1403, - Iir_Kind_Ror_Operator => 1408, - Iir_Kind_Addition_Operator => 1413, - Iir_Kind_Substraction_Operator => 1418, - Iir_Kind_Concatenation_Operator => 1423, - Iir_Kind_Multiplication_Operator => 1428, - Iir_Kind_Division_Operator => 1433, - Iir_Kind_Modulus_Operator => 1438, - Iir_Kind_Remainder_Operator => 1443, - Iir_Kind_Exponentiation_Operator => 1448, - Iir_Kind_Function_Call => 1456, - Iir_Kind_Aggregate => 1464, - Iir_Kind_Parenthesis_Expression => 1467, - Iir_Kind_Qualified_Expression => 1471, - Iir_Kind_Type_Conversion => 1476, - Iir_Kind_Allocator_By_Expression => 1481, - Iir_Kind_Allocator_By_Subtype => 1487, - Iir_Kind_Selected_Element => 1495, - Iir_Kind_Dereference => 1500, - Iir_Kind_Implicit_Dereference => 1505, - Iir_Kind_Slice_Name => 1512, - Iir_Kind_Indexed_Name => 1518, - Iir_Kind_Psl_Prev => 1524, - Iir_Kind_Psl_Stable => 1529, - Iir_Kind_Psl_Rose => 1534, - Iir_Kind_Psl_Fell => 1539, - Iir_Kind_Psl_Onehot => 1542, - Iir_Kind_Psl_Onehot0 => 1545, - Iir_Kind_Psl_Expression => 1547, - Iir_Kind_Sensitized_Process_Statement => 1569, - Iir_Kind_Process_Statement => 1590, - Iir_Kind_Concurrent_Simple_Signal_Assignment => 1603, - Iir_Kind_Concurrent_Conditional_Signal_Assignment => 1616, - Iir_Kind_Concurrent_Selected_Signal_Assignment => 1630, - Iir_Kind_Concurrent_Assertion_Statement => 1638, - Iir_Kind_Concurrent_Procedure_Call_Statement => 1645, - Iir_Kind_Concurrent_Break_Statement => 1653, - Iir_Kind_Psl_Assert_Directive => 1667, - Iir_Kind_Psl_Assume_Directive => 1679, - Iir_Kind_Psl_Cover_Directive => 1691, - Iir_Kind_Psl_Restrict_Directive => 1702, - Iir_Kind_Block_Statement => 1716, - Iir_Kind_If_Generate_Statement => 1727, - Iir_Kind_Case_Generate_Statement => 1736, - Iir_Kind_For_Generate_Statement => 1745, - Iir_Kind_Component_Instantiation_Statement => 1756, - Iir_Kind_Psl_Default_Clock => 1759, - Iir_Kind_Generate_Statement_Body => 1770, - Iir_Kind_If_Generate_Else_Clause => 1776, - Iir_Kind_Simple_Simultaneous_Statement => 1783, - Iir_Kind_Simultaneous_Null_Statement => 1787, - Iir_Kind_Simultaneous_Procedural_Statement => 1798, - Iir_Kind_Simultaneous_Case_Statement => 1807, - Iir_Kind_Simultaneous_If_Statement => 1816, - Iir_Kind_Simultaneous_Elsif => 1822, - Iir_Kind_Simple_Signal_Assignment_Statement => 1833, - Iir_Kind_Conditional_Signal_Assignment_Statement => 1844, - Iir_Kind_Selected_Waveform_Assignment_Statement => 1856, - Iir_Kind_Signal_Force_Assignment_Statement => 1866, - Iir_Kind_Signal_Release_Assignment_Statement => 1875, - Iir_Kind_Null_Statement => 1879, - Iir_Kind_Assertion_Statement => 1886, - Iir_Kind_Report_Statement => 1892, - Iir_Kind_Wait_Statement => 1900, - Iir_Kind_Variable_Assignment_Statement => 1907, - Iir_Kind_Conditional_Variable_Assignment_Statement => 1914, - Iir_Kind_Return_Statement => 1920, - Iir_Kind_For_Loop_Statement => 1931, - Iir_Kind_While_Loop_Statement => 1942, - Iir_Kind_Next_Statement => 1949, - Iir_Kind_Exit_Statement => 1956, - Iir_Kind_Case_Statement => 1965, - Iir_Kind_Procedure_Call_Statement => 1971, - Iir_Kind_Break_Statement => 1978, - Iir_Kind_If_Statement => 1988, - Iir_Kind_Suspend_State_Statement => 1992, - Iir_Kind_Elsif => 1998, - Iir_Kind_Character_Literal => 2005, - Iir_Kind_Simple_Name => 2012, - Iir_Kind_Selected_Name => 2020, - Iir_Kind_Operator_Symbol => 2025, - Iir_Kind_Reference_Name => 2030, - Iir_Kind_External_Constant_Name => 2039, - Iir_Kind_External_Signal_Name => 2048, - Iir_Kind_External_Variable_Name => 2058, - Iir_Kind_Selected_By_All_Name => 2064, - Iir_Kind_Parenthesis_Name => 2069, - Iir_Kind_Package_Pathname => 2073, - Iir_Kind_Absolute_Pathname => 2074, - Iir_Kind_Relative_Pathname => 2075, - Iir_Kind_Pathname_Element => 2080, - Iir_Kind_Base_Attribute => 2082, - Iir_Kind_Subtype_Attribute => 2087, - Iir_Kind_Element_Attribute => 2092, - Iir_Kind_Across_Attribute => 2097, - Iir_Kind_Through_Attribute => 2102, - Iir_Kind_Nature_Reference_Attribute => 2106, - Iir_Kind_Left_Type_Attribute => 2111, - Iir_Kind_Right_Type_Attribute => 2116, - Iir_Kind_High_Type_Attribute => 2121, - Iir_Kind_Low_Type_Attribute => 2126, - Iir_Kind_Ascending_Type_Attribute => 2131, - Iir_Kind_Image_Attribute => 2137, - Iir_Kind_Value_Attribute => 2143, - Iir_Kind_Pos_Attribute => 2149, - Iir_Kind_Val_Attribute => 2155, - Iir_Kind_Succ_Attribute => 2161, - Iir_Kind_Pred_Attribute => 2167, - Iir_Kind_Leftof_Attribute => 2173, - Iir_Kind_Rightof_Attribute => 2179, - Iir_Kind_Signal_Slew_Attribute => 2187, - Iir_Kind_Quantity_Slew_Attribute => 2195, - Iir_Kind_Ramp_Attribute => 2203, - Iir_Kind_Zoh_Attribute => 2211, - Iir_Kind_Ltf_Attribute => 2219, - Iir_Kind_Ztf_Attribute => 2229, - Iir_Kind_Dot_Attribute => 2236, - Iir_Kind_Integ_Attribute => 2243, - Iir_Kind_Quantity_Delayed_Attribute => 2251, - Iir_Kind_Above_Attribute => 2259, - Iir_Kind_Delayed_Attribute => 2268, - Iir_Kind_Stable_Attribute => 2277, - Iir_Kind_Quiet_Attribute => 2286, - Iir_Kind_Transaction_Attribute => 2295, - Iir_Kind_Event_Attribute => 2299, - Iir_Kind_Active_Attribute => 2303, - Iir_Kind_Last_Event_Attribute => 2307, - Iir_Kind_Last_Active_Attribute => 2311, - Iir_Kind_Last_Value_Attribute => 2315, - Iir_Kind_Driving_Attribute => 2319, - Iir_Kind_Driving_Value_Attribute => 2323, - Iir_Kind_Behavior_Attribute => 2323, - Iir_Kind_Structure_Attribute => 2323, - Iir_Kind_Simple_Name_Attribute => 2330, - Iir_Kind_Instance_Name_Attribute => 2335, - Iir_Kind_Path_Name_Attribute => 2340, - Iir_Kind_Left_Array_Attribute => 2347, - Iir_Kind_Right_Array_Attribute => 2354, - Iir_Kind_High_Array_Attribute => 2361, - Iir_Kind_Low_Array_Attribute => 2368, - Iir_Kind_Length_Array_Attribute => 2375, - Iir_Kind_Ascending_Array_Attribute => 2382, - Iir_Kind_Range_Array_Attribute => 2389, - Iir_Kind_Reverse_Range_Array_Attribute => 2396, - Iir_Kind_Attribute_Name => 2405 + Iir_Kind_File_Subtype_Definition => 398, + Iir_Kind_Physical_Subtype_Definition => 408, + Iir_Kind_Floating_Subtype_Definition => 419, + Iir_Kind_Integer_Subtype_Definition => 429, + Iir_Kind_Enumeration_Subtype_Definition => 439, + Iir_Kind_Enumeration_Type_Definition => 450, + Iir_Kind_Integer_Type_Definition => 458, + Iir_Kind_Floating_Type_Definition => 466, + Iir_Kind_Physical_Type_Definition => 477, + Iir_Kind_Range_Expression => 485, + Iir_Kind_Protected_Type_Body => 493, + Iir_Kind_Wildcard_Type_Definition => 497, + Iir_Kind_Foreign_Vector_Type_Definition => 498, + Iir_Kind_Subtype_Definition => 505, + Iir_Kind_Scalar_Nature_Definition => 513, + Iir_Kind_Record_Nature_Definition => 526, + Iir_Kind_Array_Nature_Definition => 540, + Iir_Kind_Array_Subnature_Definition => 555, + Iir_Kind_Overload_List => 556, + Iir_Kind_Foreign_Module => 561, + Iir_Kind_Entity_Declaration => 574, + Iir_Kind_Configuration_Declaration => 584, + Iir_Kind_Context_Declaration => 590, + Iir_Kind_Package_Declaration => 605, + Iir_Kind_Package_Instantiation_Declaration => 619, + Iir_Kind_Vmode_Declaration => 631, + Iir_Kind_Vprop_Declaration => 643, + Iir_Kind_Vunit_Declaration => 656, + Iir_Kind_Package_Body => 664, + Iir_Kind_Architecture_Body => 677, + Iir_Kind_Type_Declaration => 684, + Iir_Kind_Anonymous_Type_Declaration => 690, + Iir_Kind_Subtype_Declaration => 698, + Iir_Kind_Nature_Declaration => 704, + Iir_Kind_Subnature_Declaration => 711, + Iir_Kind_Package_Header => 713, + Iir_Kind_Unit_Declaration => 722, + Iir_Kind_Library_Declaration => 730, + Iir_Kind_Component_Declaration => 740, + Iir_Kind_Attribute_Declaration => 747, + Iir_Kind_Group_Template_Declaration => 753, + Iir_Kind_Group_Declaration => 760, + Iir_Kind_Element_Declaration => 768, + Iir_Kind_Nature_Element_Declaration => 775, + Iir_Kind_Non_Object_Alias_Declaration => 783, + Iir_Kind_Psl_Declaration => 791, + Iir_Kind_Psl_Endpoint_Declaration => 805, + Iir_Kind_Enumeration_Literal => 817, + Iir_Kind_Function_Declaration => 843, + Iir_Kind_Procedure_Declaration => 866, + Iir_Kind_Function_Body => 876, + Iir_Kind_Procedure_Body => 887, + Iir_Kind_Function_Instantiation_Declaration => 898, + Iir_Kind_Procedure_Instantiation_Declaration => 908, + Iir_Kind_Terminal_Declaration => 918, + Iir_Kind_Object_Alias_Declaration => 930, + Iir_Kind_Free_Quantity_Declaration => 942, + Iir_Kind_Spectrum_Quantity_Declaration => 955, + Iir_Kind_Noise_Quantity_Declaration => 967, + Iir_Kind_Across_Quantity_Declaration => 983, + Iir_Kind_Through_Quantity_Declaration => 999, + Iir_Kind_File_Declaration => 1014, + Iir_Kind_Guard_Signal_Declaration => 1028, + Iir_Kind_Signal_Declaration => 1045, + Iir_Kind_Variable_Declaration => 1058, + Iir_Kind_Constant_Declaration => 1072, + Iir_Kind_Iterator_Declaration => 1084, + Iir_Kind_Interface_Constant_Declaration => 1101, + Iir_Kind_Interface_Variable_Declaration => 1117, + Iir_Kind_Interface_Signal_Declaration => 1138, + Iir_Kind_Interface_File_Declaration => 1154, + Iir_Kind_Interface_Quantity_Declaration => 1170, + Iir_Kind_Interface_Terminal_Declaration => 1182, + Iir_Kind_Interface_Type_Declaration => 1194, + Iir_Kind_Interface_Package_Declaration => 1207, + Iir_Kind_Interface_Function_Declaration => 1226, + Iir_Kind_Interface_Procedure_Declaration => 1241, + Iir_Kind_Attribute_Implicit_Declaration => 1244, + Iir_Kind_Suspend_State_Declaration => 1247, + Iir_Kind_Identity_Operator => 1251, + Iir_Kind_Negation_Operator => 1255, + Iir_Kind_Absolute_Operator => 1259, + Iir_Kind_Not_Operator => 1263, + Iir_Kind_Implicit_Condition_Operator => 1267, + Iir_Kind_Condition_Operator => 1271, + Iir_Kind_Reduction_And_Operator => 1275, + Iir_Kind_Reduction_Or_Operator => 1279, + Iir_Kind_Reduction_Nand_Operator => 1283, + Iir_Kind_Reduction_Nor_Operator => 1287, + Iir_Kind_Reduction_Xor_Operator => 1291, + Iir_Kind_Reduction_Xnor_Operator => 1295, + Iir_Kind_And_Operator => 1300, + Iir_Kind_Or_Operator => 1305, + Iir_Kind_Nand_Operator => 1310, + Iir_Kind_Nor_Operator => 1315, + Iir_Kind_Xor_Operator => 1320, + Iir_Kind_Xnor_Operator => 1325, + Iir_Kind_Equality_Operator => 1330, + Iir_Kind_Inequality_Operator => 1335, + Iir_Kind_Less_Than_Operator => 1340, + Iir_Kind_Less_Than_Or_Equal_Operator => 1345, + Iir_Kind_Greater_Than_Operator => 1350, + Iir_Kind_Greater_Than_Or_Equal_Operator => 1355, + Iir_Kind_Match_Equality_Operator => 1360, + Iir_Kind_Match_Inequality_Operator => 1365, + Iir_Kind_Match_Less_Than_Operator => 1370, + Iir_Kind_Match_Less_Than_Or_Equal_Operator => 1375, + Iir_Kind_Match_Greater_Than_Operator => 1380, + Iir_Kind_Match_Greater_Than_Or_Equal_Operator => 1385, + Iir_Kind_Sll_Operator => 1390, + Iir_Kind_Sla_Operator => 1395, + Iir_Kind_Srl_Operator => 1400, + Iir_Kind_Sra_Operator => 1405, + Iir_Kind_Rol_Operator => 1410, + Iir_Kind_Ror_Operator => 1415, + Iir_Kind_Addition_Operator => 1420, + Iir_Kind_Substraction_Operator => 1425, + Iir_Kind_Concatenation_Operator => 1430, + Iir_Kind_Multiplication_Operator => 1435, + Iir_Kind_Division_Operator => 1440, + Iir_Kind_Modulus_Operator => 1445, + Iir_Kind_Remainder_Operator => 1450, + Iir_Kind_Exponentiation_Operator => 1455, + Iir_Kind_Function_Call => 1463, + Iir_Kind_Aggregate => 1471, + Iir_Kind_Parenthesis_Expression => 1474, + Iir_Kind_Qualified_Expression => 1478, + Iir_Kind_Type_Conversion => 1483, + Iir_Kind_Allocator_By_Expression => 1488, + Iir_Kind_Allocator_By_Subtype => 1494, + Iir_Kind_Selected_Element => 1502, + Iir_Kind_Dereference => 1507, + Iir_Kind_Implicit_Dereference => 1512, + Iir_Kind_Slice_Name => 1519, + Iir_Kind_Indexed_Name => 1525, + Iir_Kind_Psl_Prev => 1531, + Iir_Kind_Psl_Stable => 1536, + Iir_Kind_Psl_Rose => 1541, + Iir_Kind_Psl_Fell => 1546, + Iir_Kind_Psl_Onehot => 1549, + Iir_Kind_Psl_Onehot0 => 1552, + Iir_Kind_Psl_Expression => 1554, + Iir_Kind_Sensitized_Process_Statement => 1576, + Iir_Kind_Process_Statement => 1597, + Iir_Kind_Concurrent_Simple_Signal_Assignment => 1610, + Iir_Kind_Concurrent_Conditional_Signal_Assignment => 1623, + Iir_Kind_Concurrent_Selected_Signal_Assignment => 1637, + Iir_Kind_Concurrent_Assertion_Statement => 1645, + Iir_Kind_Concurrent_Procedure_Call_Statement => 1652, + Iir_Kind_Concurrent_Break_Statement => 1660, + Iir_Kind_Psl_Assert_Directive => 1674, + Iir_Kind_Psl_Assume_Directive => 1686, + Iir_Kind_Psl_Cover_Directive => 1698, + Iir_Kind_Psl_Restrict_Directive => 1709, + Iir_Kind_Block_Statement => 1723, + Iir_Kind_If_Generate_Statement => 1734, + Iir_Kind_Case_Generate_Statement => 1743, + Iir_Kind_For_Generate_Statement => 1752, + Iir_Kind_Component_Instantiation_Statement => 1763, + Iir_Kind_Psl_Default_Clock => 1766, + Iir_Kind_Generate_Statement_Body => 1777, + Iir_Kind_If_Generate_Else_Clause => 1783, + Iir_Kind_Simple_Simultaneous_Statement => 1790, + Iir_Kind_Simultaneous_Null_Statement => 1794, + Iir_Kind_Simultaneous_Procedural_Statement => 1805, + Iir_Kind_Simultaneous_Case_Statement => 1814, + Iir_Kind_Simultaneous_If_Statement => 1823, + Iir_Kind_Simultaneous_Elsif => 1829, + Iir_Kind_Simple_Signal_Assignment_Statement => 1840, + Iir_Kind_Conditional_Signal_Assignment_Statement => 1851, + Iir_Kind_Selected_Waveform_Assignment_Statement => 1863, + Iir_Kind_Signal_Force_Assignment_Statement => 1873, + Iir_Kind_Signal_Release_Assignment_Statement => 1882, + Iir_Kind_Null_Statement => 1886, + Iir_Kind_Assertion_Statement => 1893, + Iir_Kind_Report_Statement => 1899, + Iir_Kind_Wait_Statement => 1907, + Iir_Kind_Variable_Assignment_Statement => 1914, + Iir_Kind_Conditional_Variable_Assignment_Statement => 1921, + Iir_Kind_Return_Statement => 1927, + Iir_Kind_For_Loop_Statement => 1938, + Iir_Kind_While_Loop_Statement => 1949, + Iir_Kind_Next_Statement => 1956, + Iir_Kind_Exit_Statement => 1963, + Iir_Kind_Case_Statement => 1972, + Iir_Kind_Procedure_Call_Statement => 1978, + Iir_Kind_Break_Statement => 1985, + Iir_Kind_If_Statement => 1995, + Iir_Kind_Suspend_State_Statement => 1999, + Iir_Kind_Elsif => 2005, + Iir_Kind_Character_Literal => 2012, + Iir_Kind_Simple_Name => 2019, + Iir_Kind_Selected_Name => 2027, + Iir_Kind_Operator_Symbol => 2032, + Iir_Kind_Reference_Name => 2037, + Iir_Kind_External_Constant_Name => 2046, + Iir_Kind_External_Signal_Name => 2055, + Iir_Kind_External_Variable_Name => 2065, + Iir_Kind_Selected_By_All_Name => 2071, + Iir_Kind_Parenthesis_Name => 2076, + Iir_Kind_Package_Pathname => 2080, + Iir_Kind_Absolute_Pathname => 2081, + Iir_Kind_Relative_Pathname => 2082, + Iir_Kind_Pathname_Element => 2087, + Iir_Kind_Base_Attribute => 2089, + Iir_Kind_Subtype_Attribute => 2094, + Iir_Kind_Element_Attribute => 2099, + Iir_Kind_Across_Attribute => 2104, + Iir_Kind_Through_Attribute => 2109, + Iir_Kind_Nature_Reference_Attribute => 2113, + Iir_Kind_Left_Type_Attribute => 2118, + Iir_Kind_Right_Type_Attribute => 2123, + Iir_Kind_High_Type_Attribute => 2128, + Iir_Kind_Low_Type_Attribute => 2133, + Iir_Kind_Ascending_Type_Attribute => 2138, + Iir_Kind_Image_Attribute => 2144, + Iir_Kind_Value_Attribute => 2150, + Iir_Kind_Pos_Attribute => 2156, + Iir_Kind_Val_Attribute => 2162, + Iir_Kind_Succ_Attribute => 2168, + Iir_Kind_Pred_Attribute => 2174, + Iir_Kind_Leftof_Attribute => 2180, + Iir_Kind_Rightof_Attribute => 2186, + Iir_Kind_Signal_Slew_Attribute => 2194, + Iir_Kind_Quantity_Slew_Attribute => 2202, + Iir_Kind_Ramp_Attribute => 2210, + Iir_Kind_Zoh_Attribute => 2218, + Iir_Kind_Ltf_Attribute => 2226, + Iir_Kind_Ztf_Attribute => 2236, + Iir_Kind_Dot_Attribute => 2243, + Iir_Kind_Integ_Attribute => 2250, + Iir_Kind_Quantity_Delayed_Attribute => 2258, + Iir_Kind_Above_Attribute => 2266, + Iir_Kind_Delayed_Attribute => 2275, + Iir_Kind_Stable_Attribute => 2284, + Iir_Kind_Quiet_Attribute => 2293, + Iir_Kind_Transaction_Attribute => 2302, + Iir_Kind_Event_Attribute => 2306, + Iir_Kind_Active_Attribute => 2310, + Iir_Kind_Last_Event_Attribute => 2314, + Iir_Kind_Last_Active_Attribute => 2318, + Iir_Kind_Last_Value_Attribute => 2322, + Iir_Kind_Driving_Attribute => 2326, + Iir_Kind_Driving_Value_Attribute => 2330, + Iir_Kind_Behavior_Attribute => 2330, + Iir_Kind_Structure_Attribute => 2330, + Iir_Kind_Simple_Name_Attribute => 2337, + Iir_Kind_Instance_Name_Attribute => 2342, + Iir_Kind_Path_Name_Attribute => 2347, + Iir_Kind_Left_Array_Attribute => 2354, + Iir_Kind_Right_Array_Attribute => 2361, + Iir_Kind_High_Array_Attribute => 2368, + Iir_Kind_Low_Array_Attribute => 2375, + Iir_Kind_Length_Array_Attribute => 2382, + Iir_Kind_Ascending_Array_Attribute => 2389, + Iir_Kind_Range_Array_Attribute => 2396, + Iir_Kind_Reverse_Range_Array_Attribute => 2403, + Iir_Kind_Attribute_Name => 2412 ); function Get_Fields_First (K : Iir_Kind) return Fields_Index is @@ -9481,6 +9492,7 @@ package body Vhdl.Nodes_Meta is | Iir_Kind_Array_Subtype_Definition | Iir_Kind_Record_Subtype_Definition | Iir_Kind_Access_Subtype_Definition + | Iir_Kind_File_Subtype_Definition | Iir_Kind_Physical_Subtype_Definition | Iir_Kind_Floating_Subtype_Definition | Iir_Kind_Integer_Subtype_Definition @@ -9874,6 +9886,7 @@ package body Vhdl.Nodes_Meta is when Iir_Kind_Array_Subtype_Definition | Iir_Kind_Record_Subtype_Definition | Iir_Kind_Access_Subtype_Definition + | Iir_Kind_File_Subtype_Definition | Iir_Kind_Physical_Subtype_Definition | Iir_Kind_Floating_Subtype_Definition | Iir_Kind_Integer_Subtype_Definition @@ -10021,7 +10034,13 @@ package body Vhdl.Nodes_Meta is function Has_Text_File_Flag (K : Iir_Kind) return Boolean is begin - return K = Iir_Kind_File_Type_Definition; + case K is + when Iir_Kind_File_Type_Definition + | Iir_Kind_File_Subtype_Definition => + return True; + when others => + return False; + end case; end Has_Text_File_Flag; function Has_Only_Characters_Flag (K : Iir_Kind) return Boolean is @@ -10061,6 +10080,7 @@ package body Vhdl.Nodes_Meta is | Iir_Kind_Array_Subtype_Definition | Iir_Kind_Record_Subtype_Definition | Iir_Kind_Access_Subtype_Definition + | Iir_Kind_File_Subtype_Definition | Iir_Kind_Physical_Subtype_Definition | Iir_Kind_Floating_Subtype_Definition | Iir_Kind_Integer_Subtype_Definition @@ -10605,6 +10625,7 @@ package body Vhdl.Nodes_Meta is | Iir_Kind_Array_Subtype_Definition | Iir_Kind_Record_Subtype_Definition | Iir_Kind_Access_Subtype_Definition + | Iir_Kind_File_Subtype_Definition | Iir_Kind_Physical_Subtype_Definition | Iir_Kind_Floating_Subtype_Definition | Iir_Kind_Integer_Subtype_Definition @@ -10634,6 +10655,7 @@ package body Vhdl.Nodes_Meta is | Iir_Kind_Array_Subtype_Definition | Iir_Kind_Record_Subtype_Definition | Iir_Kind_Access_Subtype_Definition + | Iir_Kind_File_Subtype_Definition | Iir_Kind_Physical_Subtype_Definition | Iir_Kind_Floating_Subtype_Definition | Iir_Kind_Integer_Subtype_Definition @@ -12170,6 +12192,7 @@ package body Vhdl.Nodes_Meta is when Iir_Kind_Array_Subtype_Definition | Iir_Kind_Record_Subtype_Definition | Iir_Kind_Access_Subtype_Definition + | Iir_Kind_File_Subtype_Definition | Iir_Kind_Physical_Subtype_Definition | Iir_Kind_Floating_Subtype_Definition | Iir_Kind_Integer_Subtype_Definition |