@@ -108,6 +108,11 @@ package SC_Obligations is
108108 No_CU_Id : constant CU_Id := 0 ;
109109 subtype Valid_CU_Id is CU_Id range No_CU_Id + 1 .. CU_Id'Last;
110110
111+ function Image (CU : CU_Id) return String;
112+
113+ function Last_CU return CU_Id;
114+ -- Return the last compilation unit that was created so far
115+
111116 package CU_Id_Vectors is new Ada.Containers.Vectors (Positive, CU_Id);
112117
113118 function Provider (CU : CU_Id) return SCO_Provider;
@@ -203,6 +208,8 @@ package SC_Obligations is
203208 -- This information is computed by the instrumenters (that know what is
204209 -- a scope, and what is not).
205210
211+ function Image (SE : Scope_Entity) return String;
212+
206213 package Scope_Id_Sets is new Ada.Containers.Ordered_Sets
207214 (Element_Type => Scope_Entity_Identifier);
208215 subtype Scope_Id_Set is Scope_Id_Sets.Set;
@@ -211,6 +218,11 @@ package SC_Obligations is
211218 (Element_Type => Scope_Entity);
212219 subtype Scope_Entities_Tree is Scope_Entities_Trees.Tree;
213220
221+ procedure Dump
222+ (Scope_Entities : Scope_Entities_Trees.Tree; Line_Prefix : String := " " );
223+ -- Debug helper: print a representation of Scope_Entities on the standard
224+ -- output. Each line that is printed has the given Line_Prefix.
225+
214226 subtype Tree_Iterator is
215227 Scope_Entities_Trees.Tree_Iterator_Interfaces.Forward_Iterator'Class;
216228 type Iterator_Acc is access Tree_Iterator;
0 commit comments