File: asistant-functypes.ads

package info (click to toggle)
asis 2015-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 13,640 kB
  • sloc: ada: 140,372; makefile: 260; sh: 50; xml: 48; csh: 10
file content (304 lines) | stat: -rw-r--r-- 10,844 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
------------------------------------------------------------------------------
--                                                                          --
--             ASIS Tester And iNTerpreter (ASIStant) COMPONENTS            --
--                                                                          --
--                            F U N C T Y P E S                             --
--                                                                          --
--                                 S p e c                                  --
--                                                                          --
--          Copyright (C) 1997-2013, Free Software Foundation, Inc.         --
--                                                                          --
-- ASIStant  is  free  software;  you can  redistribute it and/or modify it --
-- under terms of the  GNU General Public License  as published by the Free --
-- Software Foundation;  either version 2,  or  (at your option)  any later --
-- version.  ASIStant is  distributed  in the hope  that it will be useful, --
-- but  WITHOUT  ANY  WARRANTY;  without  even the implied warranty of MER- --
-- CHANTABILITY or  FITNESS FOR  A PARTICULAR PURPOSE.  See the GNU General --
-- Public License for more details.  You should have received a copy of the --
-- GNU General Public License  distributed with GNAT;  see file COPYING. If --
-- not,  write to the  Free Software Foundation,  51 Franklin Street, Fifth --
-- Floor, Boston, MA 02110-1301, USA.                                       --
--                                                                          --
-- ASIStant  is an evolution of  ASIStint tool that was created by  Vasiliy --
-- Fofanov  as  part  of  a  collaboration  between  Software   Engineering --
-- Laboratory  of the  Swiss  Federal Institute of Technology in  Lausanne, --
-- Switzerland,  and the Scientific Research Computer Center of the  Moscow --
-- University, Russia,  supported by the  Swiss National Science Foundation --
-- grant #7SUPJ048247, "Development of ASIS for GNAT with industry quality" --
--                                                                          --
-- ASIStant  is  distributed as a part of the  ASIS implementation for GNAT --
-- (ASIS-for-GNAT) and is maintained by AdaCore (http://www.adacore.com).   --
------------------------------------------------------------------------------

with Asis;
with Asis.Compilation_Units.Relations;
with Asis.Data_Decomposition;
with Asis.Text;

package ASIStant.FuncTypes is

------------------------------------------------------------------------------
--  Definitions of accesses to various ASIS queries
------------------------------------------------------------------------------

   package DDA renames Asis.Data_Decomposition;

   type CtxRetBool is access
      function (Context : Asis.Context)
         return           Boolean;

   type CtxRetCUnitList is access
      function (Context : Asis.Context)
         return           Asis.Compilation_Unit_List;

   type CtxRetElemList is access
      function (Context : Asis.Context)
         return           Asis.Element_List;

   type CtxRetNull is access procedure (Context : in out Asis.Context);

   type CtxRetString is access
      function (Context : Asis.Context)
         return           Wide_String;

   type CtxStringStringRetNull is access
      procedure (Context : in out Asis.Context; Str1, Str2 : Wide_String);

   type CUnitBoolRetElemList is access
      function (CUnit : Asis.Compilation_Unit;
                Bool  : Boolean)
         return         Asis.Element_List;

   type CUnitCtxRetCUnit is access
      function (CUnit   : Asis.Compilation_Unit;
                Context : Asis.Context)
         return           Asis.Compilation_Unit;

   type CUnitCtxRetCUnitList is access
      function (CUnit   : Asis.Compilation_Unit;
                Context : Asis.Context)
         return           Asis.Compilation_Unit_List;

   type CUnitCUnitRetBool is access
      function (CUnit1, CUnit2 : Asis.Compilation_Unit)
         return                  Boolean;

   type CUnitIntIntRetElem is access
      function (CUnit      : Asis.Compilation_Unit;
                Int1, Int2 : Integer)
         return              Asis.Element;

   type CUnitListCtxRetRelship is access
      function (CUnit   : Asis.Compilation_Unit_List;
                Context : Asis.Context)
         return           Asis.Compilation_Units.Relations.Relationship;

   type CUnitListCUnitListCtxStringRetRelship is access
      function (CUnit1, CUnit2 : Asis.Compilation_Unit_List;
                Context        : Asis.Context;
                Str            : Wide_String)
         return                  Asis.Compilation_Units.Relations.Relationship;

   type CUnitListRetBool is access
      function (CUnit : Asis.Compilation_Unit_List)
         return         Boolean;

   type CUnitListRetInt is access
      function (CUnit : Asis.Compilation_Unit_List)
         return         Integer;

   type CUnitRetBool is access
      function (CUnit : Asis.Compilation_Unit)
         return         Boolean;

   type CUnitRetCtx is access
      function (CUnit : Asis.Compilation_Unit)
         return         Asis.Context;

   type CUnitRetCUnit is access
      function (CUnit : Asis.Compilation_Unit)
         return         Asis.Compilation_Unit;

   type CUnitRetCUnitList is access
      function (CUnit : Asis.Compilation_Unit)
         return         Asis.Compilation_Unit_List;

   type CUnitRetElem is access
      function (CUnit : Asis.Compilation_Unit)
         return         Asis.Element;

   type CUnitRetElemList is access
      function (CUnit : Asis.Compilation_Unit)
         return         Asis.Element_List;

   type CUnitRetString is access
      function (CUnit : Asis.Compilation_Unit)
         return         Wide_String;

   type CUnitStringRetBool is access
      function
        (CUnit : Asis.Compilation_Unit;
         Str   : Wide_String)
         return  Boolean;

   type CUnitStringRetString is access
      function
        (CUnit : Asis.Compilation_Unit;
         Str   : Wide_String)
         return  Wide_String;

   type DDA_ArrCRetDDA_ArrC is access
      function (ArrC : DDA.Array_Component) return DDA.Array_Component;

   type DDA_ArrCRetDDA_RecCList is access
      function (ArrC : DDA.Array_Component) return DDA.Record_Component_List;

   type DDA_ArrCRetElem is access
      function (ArrC : DDA.Array_Component) return Asis.Element;

   type DDA_RecCRetDDA_ArrC is access
      function (RecC : DDA.Record_Component) return DDA.Array_Component;

   type DDA_RecCRetDDA_RecCList is access
      function (RecC : DDA.Record_Component) return DDA.Record_Component_List;

   type DDA_RecCRetElem is access
      function (RecC : DDA.Record_Component) return Asis.Element;

   type ElemBoolRetElemList is access
      function
        (Element : Asis.Element;
         Bool    : Boolean)
         return    Asis.Element_List;

   type ElemCtxRetElem is access
      function
        (Element : Asis.Element;
         Context : Asis.Context)
         return    Asis.Element;

   type ElemElemBoolRetBool is access
      function
        (Element1, Element2 : Asis.Element;
         Bool               : Boolean)
         return               Boolean;

   type ElemElemBoolRetElemList is access
      function
        (Element1, Element2 : Asis.Element;
         Bool               : Boolean)
         return               Asis.Element_List;

   type ElemElemRetBool is access
      function (Element1, Element2 : Asis.Element) return Boolean;

   type ElemElemRetElem is access
      function (Element1, Element2 : Asis.Element) return Asis.Element;

   type ElemIntIntRetLineList is access
      function
        (Elem : Asis.Element;
         Int1 : Positive;
         Int2 : Natural)
         return Asis.Text.Line_List;

   type ElemListRetBool is access
      function (ElemList : Asis.Element_List) return Boolean;

   type ElemListRetInt is access
      function (ElemList : Asis.Element_List) return Integer;

   type ElemRetBool is access
      function (Element : Asis.Element) return Boolean;

   type ElemRetCUnit is access
      function (Element : Asis.Element) return Asis.Compilation_Unit;

   type ElemRetDDA_ArrC is access
      function (Element : Asis.Element) return DDA.Array_Component;

   type ElemRetDDA_RecCList is access
      function (Element : Asis.Element) return DDA.Record_Component_List;

   type ElemRetElem is access
      function (Element  : Asis.Element) return Asis.Element;

   type ElemRetElemList is access
      function (Element : Asis.Element) return Asis.Element_List;

   type ElemRetInt is access
      function (Element : Asis.Element) return Integer;

   type ElemRetLineList is access
      function (Element : Asis.Element) return Asis.Text.Line_List;

   type ElemRetSpan is access
      function (Element : Asis.Element) return Asis.Text.Span;

   type ElemRetString is access
      function (Element : Asis.Element) return Wide_String;

   type ElemSpanRetLineList is access
      function (Elem : Asis.Element; Span : Asis.Text.Span)
         return Asis.Text.Line_List;

   type IntIntRetBool is access
      function (I1, I2 : Integer) return Boolean;

   type IntIntRetInt is access
      function (I1, I2 : Integer) return Integer;

   type LineRetString is access
      function (L : Asis.Text.Line) return Wide_String;

   type RelshipRetCUnitList is access
      function
        (R    : Asis.Compilation_Units.Relations.Relationship)
         return Asis.Compilation_Unit_List;

   type RetBool is access
      function return Boolean;

   type RetCUnit is access
      function return Asis.Compilation_Unit;

   type RetCUnitList is access
      function return Asis.Compilation_Unit_List;

   type RetElem is access
      function return Asis.Element;

   type RetElemList is access
      function return Asis.Element_List;

   type RetRelship is access
      function return Asis.Compilation_Units.Relations.Relationship;

   type RetSpan is access
      function return Asis.Text.Span;

   type RetString is access
      function return Wide_String;

   type SpanRetBool is access
      function (Span : Asis.Text.Span) return Boolean;

   type SpanRetInt is access
      function (Span : Asis.Text.Span) return Integer;

   type StringCtxRetCUnit is access
      function
        (Str     : Wide_String;
         Context : Asis.Context)
         return    Asis.Compilation_Unit;

   type StringRetNull is access
      procedure (Str  : Wide_String);

   type StringStringRetBool is access
      function (S1, S2 : Wide_String) return Boolean;

   type StringStringRetString is access
      function (S1, S2 : Wide_String) return Wide_String;

end ASIStant.FuncTypes;