text
stringlengths
0
234
not overriding procedure Read_TextDocumentContentChangeEvent
(S : access Ada.Streams.Root_Stream_Type'Class;
V : out TextDocumentContentChangeEvent)
is
JS : League.JSON.Streams.JSON_Stream'Class renames
League.JSON.Streams.JSON_Stream'Class (S.all);
begin
JS.Start_Object;
JS.Key (+"range");
Optional_Span'Read (S, V.span);
Read_Optional_Number (JS, +"rangeLength", V.rangeLength);
Read_String (JS, +"text", V.text);
JS.End_Object;
end Read_TextDocumentContentChangeEvent;
------------------------------------------------
-- Read_TextDocumentContentChangeEvent_Vector --
------------------------------------------------
not overriding procedure Read_TextDocumentContentChangeEvent_Vector
(S : access Ada.Streams.Root_Stream_Type'Class;
V : out TextDocumentContentChangeEvent_Vector)
is
JS : League.JSON.Streams.JSON_Stream'Class renames
League.JSON.Streams.JSON_Stream'Class (S.all);
begin
V.Clear;
JS.Start_Array;
while not JS.End_Of_Array loop
declare
Item : TextDocumentContentChangeEvent;
begin
TextDocumentContentChangeEvent'Read (S, Item);
V.Append (Item);
Function Definition: procedure Create_Filename is
Function Body: File : Stream_IO.File_Type;
begin
Ada.Text_IO.Put_Line (Source_Location & ":" & Enclosing_Entity);
Stream_IO.Create (File, Stream_IO.Out_File, Filename);
Stream_IO.Close (File);
end Create_Filename;
overriding
function End_Of_File (Resource : Pump_Stream) return Boolean is
begin
return not Resource.Is_Open;
Function Definition: procedure Create_Filename;
Function Body: Filename : constant String := "dm_file.data";
URI : Services.Dispatchers.URI.Handler;
Handler : Services.Dispatchers.Linker.Handler;
Conf : Config.Object := Config.Get_Current;
WS : Server.HTTP;
type Pump_Stream is limited new AWS.Resources.Streams.Memory.Stream_Type with private;
procedure Open (S : in out Pump_Stream);
overriding
function End_Of_File (Resource : Pump_Stream) return Boolean;
overriding
procedure Read
(Resource : in out Pump_Stream;
Buffer : out Stream_Element_Array;
Last : out Stream_Element_Offset);
overriding
procedure Close (Resource : in out Pump_Stream);
overriding
procedure Reset (Resource : in out Pump_Stream) is null;
overriding
procedure Set_Index
(Resource : in out Pump_Stream;
To : Stream_Element_Offset) is null;
private
not overriding
procedure Real_Read
(Resource : in out Pump_Stream;
Buffer : out Stream_Element_Array;
Last : out Stream_Element_Offset);
type Pump_Stream is limited new AWS.Resources.Streams.Memory.Stream_Type with record
Is_Open : Boolean := False;
end record;
Function Definition: procedure finalize_library is
Function Body: begin
E65 := E65 - 1;
declare
procedure F1;
pragma Import (Ada, F1, "ada__text_io__finalize_spec");
begin
F1;
Function Definition: procedure F2;