File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -335,9 +335,11 @@ package body LSP.Ada_Contexts is
335
335
end if ;
336
336
337
337
declare
338
+ use VSS.Strings;
338
339
Lal_Result : constant Basic_Decl_Array :=
339
340
Decl.P_Base_Subp_Declarations;
340
- Our_Result : Basic_Decl_Array (1 .. Lal_Result'Length - 1 );
341
+ Our_Result : Basic_Decl_Array
342
+ (Lal_Result'First .. Lal_Result'Last - 1 );
341
343
Index : Positive := 1 ;
342
344
begin
343
345
-- Libadalang returns an empty array if this is not a subprogram
@@ -349,7 +351,7 @@ package body LSP.Ada_Contexts is
349
351
-- The result returned by Libadalang includes self; we want to remove
350
352
-- this from the list.
351
353
for J of Lal_Result loop
352
- if J /= Decl then
354
+ if Node_Location_Image (J) /= Node_Location_Image ( Decl) then
353
355
Our_Result (Index) := J;
354
356
Index := Index + 1 ;
355
357
end if ;
You can’t perform that action at this time.
0 commit comments