File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,11 @@ with VSS.Text_Streams;
29
29
package LSP.JSON_Streams is
30
30
-- pragma Elaborate_Body;
31
31
32
+ type JSON_Reader is access all VSS.JSON.Pull_Readers.JSON_Pull_Reader'Class;
33
+
32
34
type JSON_Stream
33
35
(Is_Server_Side : Boolean := False;
34
- R : access VSS.JSON.Pull_Readers.JSON_Pull_Reader'Class := null )
36
+ R : JSON_Reader := null )
35
37
is limited new Ada.Streams.Root_Stream_Type with private ;
36
38
-- Stream implemented over JSON document
37
39
--
@@ -106,7 +108,7 @@ private
106
108
107
109
type JSON_Stream
108
110
(Is_Server_Side : Boolean := False;
109
- R : access VSS.JSON.Pull_Readers.JSON_Pull_Reader'Class := null )
111
+ R : JSON_Reader := null )
110
112
is limited new Ada.Streams.Root_Stream_Type with
111
113
record
112
114
W : Write_Stream;
Original file line number Diff line number Diff line change @@ -636,7 +636,7 @@ package body LSP.Clients is
636
636
use all type VSS.JSON.Streams.JSON_Stream_Element_Kind;
637
637
638
638
R : aliased VSS.JSON.Pull_Readers.Simple.JSON_Simple_Pull_Reader;
639
- JS : aliased LSP.JSON_Streams.JSON_Stream (False, R'Access );
639
+ JS : aliased LSP.JSON_Streams.JSON_Stream (False, R'Unchecked_Access );
640
640
641
641
begin
642
642
R.Set_Stream (Memory'Unchecked_Access);
You can’t perform that action at this time.
0 commit comments