Skip to content

Commit e641912

Browse files
Use proper Get_Diagnostics function name
For eng/ide/ada_language_server#1593
1 parent 3b59412 commit e641912

6 files changed

+10
-10
lines changed

source/ada/lsp-ada_documents-lal_diagnostics.adb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ package body LSP.Ada_Documents.LAL_Diagnostics is
2929
-- Get_Diagnostic --
3030
--------------------
3131

32-
overriding procedure Get_Diagnostic
32+
overriding procedure Get_Diagnostics
3333
(Self : in out Diagnostic_Source;
3434
Context : LSP.Ada_Contexts.Context;
3535
Errors : out LSP.Structures.Diagnostic_Vector)
@@ -49,7 +49,7 @@ package body LSP.Ada_Documents.LAL_Diagnostics is
4949

5050
Errors.Append (Item);
5151
end loop;
52-
end Get_Diagnostic;
52+
end Get_Diagnostics;
5353

5454
------------------------
5555
-- Has_New_Diagnostic --

source/ada/lsp-ada_documents-lal_diagnostics.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ package LSP.Ada_Documents.LAL_Diagnostics is
2626
Document : not null LSP.Ada_Documents.Document_Access)
2727
is limited new LSP.Diagnostic_Sources.Diagnostic_Source with private;
2828

29-
overriding procedure Get_Diagnostic
29+
overriding procedure Get_Diagnostics
3030
(Self : in out Diagnostic_Source;
3131
Context : LSP.Ada_Contexts.Context;
3232
Errors : out LSP.Structures.Diagnostic_Vector);

source/ada/lsp-ada_documents-source_info_diagnostics.adb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ package body LSP.Ada_Documents.Source_Info_Diagnostics is
4343
return False;
4444
end Has_New_Diagnostic;
4545

46-
--------------------
46+
---------------------
4747
-- Get_Diagnostics --
48-
--------------------
48+
---------------------
4949

5050
overriding
51-
procedure Get_Diagnostic
51+
procedure Get_Diagnostics
5252
(Self : in out Diagnostic_Source;
5353
Context : LSP.Ada_Contexts.Context;
5454
Errors : out LSP.Structures.Diagnostic_Vector)
@@ -78,7 +78,7 @@ package body LSP.Ada_Documents.Source_Info_Diagnostics is
7878
others => <>));
7979
end;
8080
end if;
81-
end Get_Diagnostic;
81+
end Get_Diagnostics;
8282

8383
----------------
8484
-- Is_Enabled --

source/ada/lsp-ada_documents-source_info_diagnostics.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ package LSP.Ada_Documents.Source_Info_Diagnostics is
2828
Document : not null LSP.Ada_Documents.Document_Access)
2929
is limited new LSP.Diagnostic_Sources.Diagnostic_Source with private;
3030

31-
overriding procedure Get_Diagnostic
31+
overriding procedure Get_Diagnostics
3232
(Self : in out Diagnostic_Source;
3333
Context : LSP.Ada_Contexts.Context;
3434
Errors : out LSP.Structures.Diagnostic_Vector);

source/ada/lsp-ada_documents.adb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ package body LSP.Ada_Documents is
966966

967967
if Changed or else Force then
968968
for Source of Self.Diagnostic_Sources loop
969-
Source.Get_Diagnostic (Context, Errors);
969+
Source.Get_Diagnostics (Context, Errors);
970970
end loop;
971971
end if;
972972
end Get_Errors;

source/ada/lsp-diagnostic_sources.ads

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ package LSP.Diagnostic_Sources is
3333
LSP.Diagnostic_Sources.Diagnostic_Source_Access,
3434
LSP.Diagnostic_Sources."=");
3535

36-
procedure Get_Diagnostic
36+
procedure Get_Diagnostics
3737
(Self : in out Diagnostic_Source;
3838
Context : LSP.Ada_Contexts.Context;
3939
Errors : out LSP.Structures.Diagnostic_Vector) is abstract;

0 commit comments

Comments
 (0)