112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
Parent => Parent,
Next => null,
Data => new Atom'(N.Data.all));
when List_Node =>
Result := new Node'(Kind => List_Node,
Parent => Parent,
Next => null,
Child => Dup_List (N.Child, N));
end case;
if N = Source.Last then
New_Last := Result;
end if;
return Result;
|
|
>
|
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
|
Parent => Parent,
Next => null,
Data => new Atom'(N.Data.all));
when List_Node =>
Result := new Node'(Kind => List_Node,
Parent => Parent,
Next => null,
Child => null);
Result.Child := Dup_List (N.Child, Result);
end case;
if N = Source.Last then
New_Last := Result;
end if;
return Result;
|