Skip to content

Commit 8a506bb

Browse files
committed
Merge branch 'topic/lal_1552' into 'master'
Update due to recent LAL API change. See merge request eng/ide/libadalang-tools!384
2 parents 046403f + b57ea7f commit 8a506bb

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/laltools-common.adb

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2835,18 +2835,17 @@ package body Laltools.Common is
28352835
Ref_Kind : out Libadalang.Common.Ref_Result_Kind) return Defining_Name
28362836
is
28372837
Result : Defining_Name;
2838-
Failsafe_Result : Refd_Def;
2838+
Failsafe_Result : Refd_Decl;
28392839
begin
28402840
Ref_Kind := Precise;
28412841
if Name_Node.Is_Null then
28422842
return No_Defining_Name;
2843-
-- P_Failsafe_Referenced_Def_Name doesn't work on the decl itself
2843+
-- P_Failsafe_Referenced_Decl doesn't work on the decl itself
28442844
elsif Name_Node.P_Is_Defining then
28452845
Result := Name_Node.P_Enclosing_Defining_Name.P_Canonical_Part;
28462846
else
28472847
Failsafe_Result :=
2848-
Name_Node.P_Failsafe_Referenced_Def_Name
2849-
(Imprecise_Fallback => True);
2848+
Name_Node.P_Failsafe_Referenced_Decl (Imprecise_Fallback => True);
28502849
Ref_Kind := Kind (Failsafe_Result);
28512850
case Kind (Failsafe_Result) is
28522851
when Precise | Imprecise =>

0 commit comments

Comments
 (0)