Skip to content

Commit

Permalink
Merge branch 'topic/als#1424' into 'master'
Browse files Browse the repository at this point in the history
Avoid exception when basic decl has several defining names

See merge request eng/ide/libadalang-tools!244
  • Loading branch information
AnthonyLeonardoGracio committed Sep 23, 2024
2 parents c4c2c06 + ee8d7b2 commit 85623f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/laltools-common.adb
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ package body Laltools.Common is
return Defining_Name
is
Qualified_Name : constant Langkit_Support.Text.Text_Type :=
Definition.P_Basic_Decl.P_Fully_Qualified_Name;
Definition.P_Fully_Qualified_Name;
-- The name that we'll try to match

Found : Defining_Name := No_Defining_Name;
Expand Down Expand Up @@ -1210,7 +1210,7 @@ package body Laltools.Common is
Decl : constant Basic_Decl := Node.As_Basic_Decl;
Def : constant Defining_Name := Decl.P_Defining_Name;
Def_Name : constant Langkit_Support.Text.Text_Type :=
Decl.P_Fully_Qualified_Name;
Def.P_Fully_Qualified_Name;
begin
-- Search a declaration with the same qualified_name which is
-- not Definition itself.
Expand Down

0 comments on commit 85623f2

Please sign in to comment.