1 pragma Warnings
(Off
, "unit ""Types.Sequences"" is not referenced");
3 pragma Warnings
(On
, "unit ""Types.Sequences"" is not referenced");
5 package body Types
.Macros
is
7 function Ast
(Item
: in Instance
) return T
10 procedure Keep_References
(Object
: in out Instance
) is
13 Object
.F_Params
.all.Keep
;
16 function New_Macro
(Func
: in Fns
.Instance
) return T
is
17 -- Params is not null and requires an immediate initialization.
18 Ref
: constant Macro_Ptr
:= new Instance
'
19 (Garbage_Collected.Instance with Func.Ast, Func.Params);
21 Garbage_Collected.Register (Garbage_Collected.Pointer (Ref));
22 return (Kind_Macro, Ref);
25 function Params (Item : in Instance) return Sequence_Ptr