Skip to content

Commit

Permalink
Adapt to libadalang API change
Browse files Browse the repository at this point in the history
In part of the work to support the GNAT experimental feature allowing
to have fixed lower bounds for array types and subtypes in libadalang,
`UnconstrainedArrayIndex.F_Subtype_Indication` (an Expr node) has been
renamed to `UnconstrainedArrayIndex.F_Subtype_Name` (a Name node) in
order to fix a bug in the Ada grammar description of libadalang.
  • Loading branch information
thvnx committed Dec 11, 2023
1 parent 2a8f13e commit cd3f593
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tgen/tgen-types-translation.adb
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,8 @@ package body TGen.Types.Translation is
declare
Index_Type : constant Translation_Result :=
Translate
(Index.F_Subtype_Indication.As_Type_Expr, Verbose_Diag);
(Index.F_Subtype_Name.As_Name.P_Name_Designated_Type,
Verbose_Diag);
begin
if Index_Type.Success then
Res_Typ.Index_Types (Current_Index_Type) := Index_Type.Res;
Expand Down

0 comments on commit cd3f593

Please sign in to comment.