File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,6 @@ package body LSP.Ada_Completions.Filters is
45
45
if not Self.Is_End_Label.Is_Set then
46
46
declare
47
47
use all type Libadalang.Common.Ada_Node_Kind_Type;
48
- use all type Libadalang.Common.Token_Kind;
49
-
50
- Prev_Token : constant Libadalang.Common.Token_Reference :=
51
- Libadalang.Common.Previous (Self.Token, Exclude_Trivia => True);
52
-
53
- Prev_Token_Kind : constant Libadalang.Common.Token_Kind :=
54
- Kind (Prev_Token);
55
48
56
49
Parent : Libadalang.Analysis.Ada_Node :=
57
50
(if Self.Node.Is_Null then Self.Node else Self.Node.Parent);
@@ -74,8 +67,7 @@ package body LSP.Ada_Completions.Filters is
74
67
75
68
Self.Is_End_Label :=
76
69
(True,
77
- Prev_Token_Kind = Ada_End or else
78
- (not Parent.Is_Null and then Parent.Kind = Ada_End_Name));
70
+ not Parent.Is_Null and then Parent.Kind = Ada_End_Name);
79
71
end ;
80
72
end if ;
81
73
You can’t perform that action at this time.
0 commit comments