text stringlengths 0 234 |
|---|
begin |
while not Ada.Wide_Wide_Text_IO.End_Of_File loop |
declare |
Line : constant Wide_Wide_String := Ada.Wide_Wide_Text_IO.Get_Line; |
begin |
Source.Text.Append (Line); |
Source.Text.Append (Ada.Characters.Wide_Wide_Latin_1.LF); |
Function Definition: overriding procedure Discard (Self : in out Joint) is |
Function Body: Now : constant Version_Trees.Version := Self.Document.History.Changing; |
Diff : Integer := 0; |
begin |
Versioned_Booleans.Discard (Self.Exist, Now, Diff); |
for J in Self.Kids'Range loop |
Versioned_Nodes.Discard (Self.Kids (J), Now, Diff); |
Self.Child (J, Now).Discard_Parent; |
end loop; |
Self.Update_Local_Changes (Diff); |
end Discard; |
-------------- |
-- Is_Token -- |
-------------- |
overriding function Is_Token (Self : Joint) return Boolean is |
pragma Unreferenced (Self); |
begin |
return False; |
end Is_Token; |
---------- |
-- Kind -- |
---------- |
overriding function Kind (Self : Joint) return Node_Kind is |
begin |
return Self.Kind; |
end Kind; |
-------------------- |
-- Nested_Changes -- |
-------------------- |
overriding function Nested_Changes |
(Self : Joint; |
From : Version_Trees.Version; |
To : Version_Trees.Version) return Boolean |
is |
use type Version_Trees.Version; |
Time : Version_Trees.Version := To; |
begin |
if Self.Document.History.Is_Changing (To) then |
if Self.Nested_Changes > 0 then |
return True; |
elsif Time = From then |
return False; |
end if; |
Time := Self.Document.History.Parent (Time); |
end if; |
while Time /= From loop |
if Versioned_Booleans.Get (Self.NC, Time) then |
return True; |
end if; |
Time := Self.Document.History.Parent (Time); |
end loop; |
return False; |
end Nested_Changes; |
------------------- |
-- Nested_Errors -- |
------------------- |
overriding function Nested_Errors |
(Self : Joint; |
Time : Version_Trees.Version) return Boolean is |
begin |
return Versioned_Booleans.Get (Self.NE, Time); |
end Nested_Errors; |
--------------- |
-- On_Commit -- |
--------------- |
overriding procedure On_Commit |
(Self : in out Joint; |
Parent : Node_Access) |
is |
Now : constant Version_Trees.Version := Self.Document.History.Changing; |
Prev : constant Version_Trees.Version := |
Self.Document.History.Parent (Now); |
Child : Nodes.Node_Access; |
Errors : Boolean := False; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.