1 #include "nit.common.h"
2 #define COLOR_model__Model___mclasses 6
3 #define COLOR_model__Model___mproperties 7
4 #define COLOR_model__Model___mclassdef_hierarchy 8
5 #define COLOR_model__Model___intro_mtype_specialization_hierarchy 9
6 #define COLOR_model__Model___full_mtype_specialization_hierarchy 10
7 #define COLOR_model__Model___mclasses_by_name 11
8 short int abstract_collection__MapRead__has_key(val
* self
, val
* p0
);
9 val
* hash_collection__HashMap___91d_93d(val
* self
, val
* p0
);
10 val
* model__Model__get_mclasses_by_name(val
* self
, val
* p0
);
11 #define COLOR_model__Model___mproperties_by_name 12
12 val
* model__Model__get_mproperties_by_name(val
* self
, val
* p0
);
13 #define COLOR_model__Model___null_type 13
14 #define COLOR_model__MModule___intro_mclasses 12
15 #define COLOR_model__MModule___mclassdefs 13
16 #define COLOR_model__MModule___flatten_mclass_hierarchy_cache 14
17 #define COLOR_kernel__Object___61d_61d 2
18 val
* NEW_poset__POSet(const struct type
* type
);
19 extern const struct type type_poset__POSetmodel__MClass
;
20 #define COLOR_mmodule__MModule___in_importation 7
21 val
* poset__POSetElement__greaters(val
* self
);
22 #define COLOR_abstract_collection__Collection__iterator 29
23 #define COLOR_abstract_collection__Iterator__is_ok 31
24 #define COLOR_abstract_collection__Iterator__item 29
25 val
* array__AbstractArrayRead__iterator(val
* self
);
26 short int array__ArrayIterator__is_ok(val
* self
);
27 val
* array__ArrayIterator__item(val
* self
);
28 #define COLOR_model__MClassDef___mclass 2
29 val
* poset__POSet__add_node(val
* self
, val
* p0
);
30 #define COLOR_model__MClassDef___supertypes 7
31 #define COLOR_model__MClassType___mclass 3
32 void poset__POSet__add_edge(val
* self
, val
* p0
, val
* p1
);
33 void array__ArrayIterator__next(val
* self
);
34 #define COLOR_abstract_collection__Iterator__next 30
35 val
* model__MModule__flatten_mclass_hierarchy(val
* self
);
36 void sorter__Comparator__sort(val
* self
, val
* p0
);
37 void model__MModule__linearize_mclasses(val
* self
, val
* p0
);
38 val
* NEW_model__MClassDefSorter(const struct type
* type
);
39 extern const struct type type_model__MClassDefSorter
;
40 #define COLOR_model__MClassDefSorter___mmodule 0
41 void model__MModule__linearize_mclassdefs(val
* self
, val
* p0
);
42 val
* NEW_model__MPropDefSorter(const struct type
* type
);
43 extern const struct type type_model__MPropDefSorter
;
44 #define COLOR_model__MPropDefSorter___mmodule 0
45 void model__MModule__linearize_mpropdefs(val
* self
, val
* p0
);
46 #define COLOR_model__MModule___object_type_cache 15
47 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
48 val
* model__MModule__get_primitive_class(val
* self
, val
* p0
);
49 #define COLOR_model__MClass___mclass_type 7
50 val
* model__MModule__object_type(val
* self
);
51 #define COLOR_model__MModule___bool_type_cache 16
52 val
* model__MModule__bool_type(val
* self
);
53 #define COLOR_mmodule__MModule___model 1
54 short int abstract_collection__SequenceRead___61d_61d(val
* self
, val
* p0
);
55 val
* model__MModule__sys_type(val
* self
);
56 short int string__FlatString___61d_61d(val
* self
, val
* p0
);
57 val
* NEW_model__MClass(const struct type
* type
);
58 extern const struct type type_model__MClass
;
59 val
* model__Object__enum_kind(val
* self
);
60 val
* model_base__Object__public_visibility(val
* self
);
61 void model__MClass__init(val
* self
, val
* p0
, val
* p1
, long p2
, val
* p3
, val
* p4
);
62 val
* NEW_model__MClassDef(const struct type
* type
);
63 extern const struct type type_model__MClassDef
;
64 val
* NEW_location__Location(const struct type
* type
);
65 extern const struct type type_location__Location
;
66 void location__Location__init(val
* self
, val
* p0
, long p1
, long p2
, long p3
, long p4
);
67 val
* NEW_array__Array(const struct type
* type
);
68 extern const struct type type_array__Arraystring__String
;
69 void array__Array__init(val
* self
);
70 void model__MClassDef__init(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
71 extern const struct type type_array__Arraykernel__Object
;
72 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
73 extern const struct type type_array__NativeArraykernel__Object
;
74 #define COLOR_array__Array__with_native 65
75 #define COLOR_string__Object__to_s 7
76 void file__Object__print(val
* self
, val
* p0
);
77 long array__AbstractArrayRead__length(val
* self
);
78 val
* model__MClass__full_name(val
* self
);
79 val
* string__FlatString___43d(val
* self
, val
* p0
);
80 val
* abstract_collection__SequenceRead__first(val
* self
);
81 extern const struct type type_model__MMethod
;
82 #define COLOR_model__MProperty___intro_mclassdef 1
83 #define COLOR_model__MClass___mclassdefs 6
84 #define COLOR_model__MClassDef___mmodule 1
85 #define COLOR_abstract_collection__Collection__has 32
86 #define COLOR_model__MClassDef___in_hierarchy 8
87 val
* model__MProperty__full_name(val
* self
);
88 val
* model__MModule__try_get_primitive_method(val
* self
, val
* p0
, val
* p1
);
89 long poset__POSet__compare(val
* self
, val
* p0
, val
* p1
);
90 long model__MClassDefSorter__compare(val
* self
, val
* p0
, val
* p1
);
91 #define COLOR_model__MPropDef___mclassdef 2
92 long model__MPropDefSorter__compare(val
* self
, val
* p0
, val
* p1
);
93 #define COLOR_model__MClass___intro_mmodule 1
94 #define COLOR_model__MClass___name 2
95 val
* mmodule__MModule__full_name(val
* self
);
96 #define COLOR_model__MClass___arity 3
97 #define COLOR_model__MClass___kind 4
98 #define COLOR_model__MClass___visibility 5
99 void array__Array__add(val
* self
, val
* p0
);
100 void more_collections__MultiHashMap__add_one(val
* self
, val
* p0
, val
* p1
);
101 extern const struct type type_kernel__Int
;
102 extern const struct type type_array__Arraymodel__MParameterType
;
103 val
* NEW_range__Range(const struct type
* type
);
104 extern const struct type type_range__Rangekernel__Int
;
105 val
* BOX_kernel__Int(long);
106 void range__Range__without_last(val
* self
, val
* p0
, val
* p1
);
107 val
* range__Range__iterator(val
* self
);
108 val
* NEW_model__MParameterType(const struct type
* type
);
109 extern const struct type type_model__MParameterType
;
110 void model__MParameterType__init(val
* self
, val
* p0
, long p1
);
111 val
* NEW_model__MGenericType(const struct type
* type
);
112 extern const struct type type_model__MGenericType
;
113 void model__MGenericType__init(val
* self
, val
* p0
, val
* p1
);
114 #define COLOR_model__MClass___get_mtype_cache 8
115 val
* NEW_model__MClassType(const struct type
* type
);
116 extern const struct type type_model__MClassType
;
117 void model__MClassType__init(val
* self
, val
* p0
);
118 val
* model__MClass__model(val
* self
);
119 val
* model__MClass__to_s(val
* self
);
120 short int array__AbstractArrayRead__is_empty(val
* self
);
121 val
* model__MClass__intro(val
* self
);
122 val
* poset__POSet___91d_93d(val
* self
, val
* p0
);
123 val
* model__MClass__in_hierarchy(val
* self
, val
* p0
);
124 #define COLOR_model__MClassType___arguments 4
125 val
* model__MClass__get_mtype(val
* self
, val
* p0
);
126 #define COLOR_model__MClassDef___bound_mtype 3
127 #define COLOR_model__MClassDef___parameter_names 4
128 #define COLOR_model__MClassDef___location 5
129 #define COLOR_model__MClassDef___to_s 6
130 val
* model__MClassDef__name(val
* self
);
131 val
* model__MClassDef__model(val
* self
);
132 void model__MClassDef__set_supertypes(val
* self
, val
* p0
);
133 val
* model__MClassType__collect_mclassdefs(val
* self
, val
* p0
);
134 #define COLOR_poset__POSetElement___poset 0
135 void model__MClassDef__add_in_hierarchy(val
* self
);
136 short int model__MClassDef__is_intro(val
* self
);
137 #define COLOR_model__MClassDef___intro_mproperties 9
138 #define COLOR_model__MClassDef___mpropdefs 10
139 val
* model__MType__name(val
* self
);
140 #define COLOR_model__MType__need_anchor 36
141 #define COLOR_model__MType__can_resolve_for 39
142 extern const struct type type_model__MVirtualType
;
143 #define COLOR_model__MType__resolve_for 38
144 extern const struct type type_model__MNullableType
;
145 #define COLOR_model__MNullableType___mtype 3
146 extern const struct type type_model__MNullType
;
147 #define COLOR_model__MType__anchor_to 35
148 val
* model__MClassType__anchor_to(val
* self
, val
* p0
, val
* p1
);
149 val
* model__MClassType__collect_mclasses(val
* self
, val
* p0
);
150 val
* model__MType__supertype_to(val
* self
, val
* p0
, val
* p1
, val
* p2
);
151 val
* array__Array___91d_93d(val
* self
, long p0
);
152 short int model__MType__is_subtype(val
* self
, val
* p0
, val
* p1
, val
* p2
);
153 val
* model__MType__anchor_to(val
* self
, val
* p0
, val
* p1
);
154 short int model__MType__need_anchor(val
* self
);
155 #define COLOR_model__MType__collect_mtypes 47
156 #define COLOR_model__MType___as_nullable_cache 1
157 val
* NEW_model__MNullableType(const struct type
* type
);
158 void model__MNullableType__init(val
* self
, val
* p0
);
159 val
* model__MType__as_nullable(val
* self
);
160 val
* model__MType__as_notnullable(val
* self
);
161 long model__MType__length(val
* self
);
162 #define COLOR_model__MType__collect_mclassdefs 45
163 short int model__MType__has_mproperty(val
* self
, val
* p0
, val
* p1
);
164 val
* model__MClassType__model(val
* self
);
165 val
* model__MClassType__to_s(val
* self
);
166 short int model__MClassType__need_anchor(val
* self
);
167 #define COLOR_model__MClassType__anchor_to 65
168 val
* model__MClassType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
169 short int model__MClassType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
);
170 #define COLOR_model__MClassType___collect_mclassdefs_cache 5
171 void model__MClassType__collect_things(val
* self
, val
* p0
);
172 #define COLOR_model__MClassType___collect_mclasses_cache 6
173 #define COLOR_model__MClassType___collect_mtypes_cache 7
174 val
* model__MClassType__collect_mtypes(val
* self
, val
* p0
);
175 val
* NEW_hash_collection__HashSet(const struct type
* type
);
176 extern const struct type type_hash_collection__HashSetmodel__MClassDef
;
177 void hash_collection__HashSet__init(val
* self
);
178 extern const struct type type_hash_collection__HashSetmodel__MClass
;
179 extern const struct type type_hash_collection__HashSetmodel__MClassType
;
180 void hash_collection__HashSet__add(val
* self
, val
* p0
);
181 extern const struct type type_array__Arraymodel__MClass
;
182 void array__Array__with_capacity(val
* self
, long p0
);
183 void array__AbstractArray__push(val
* self
, val
* p0
);
184 val
* array__AbstractArray__pop(val
* self
);
185 short int poset__POSetElement___60d_61d(val
* self
, val
* p0
);
186 short int hash_collection__HashSet__has(val
* self
, val
* p0
);
187 void hash_collection__HashMap___91d_93d_61d(val
* self
, val
* p0
, val
* p1
);
188 #define COLOR_model__MGenericType___need_anchor 9
189 val
* string__Collection__join(val
* self
, val
* p0
);
190 #define COLOR_model__MGenericType___to_s 8
191 short int model__MGenericType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
);
192 extern const struct type type_array__Arraymodel__MType
;
193 val
* model__MGenericType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
194 #define COLOR_model__MType__length 44
195 long model__MGenericType__length(val
* self
);
196 #define COLOR_model__MVirtualType___mproperty 3
197 val
* model__MVirtualType__model(val
* self
);
198 val
* model__MProperty__lookup_definitions(val
* self
, val
* p0
, val
* p1
);
199 extern const struct type type_model__MVirtualTypeDef
;
200 #define COLOR_model__MVirtualTypeDef___bound 7
201 val
* NEW_array__ArraySet(const struct type
* type
);
202 extern const struct type type_array__ArraySetmodel__MType
;
203 void array__ArraySet__init(val
* self
);
204 void array__ArraySet__add(val
* self
, val
* p0
);
205 long array__ArraySet__length(val
* self
);
206 val
* array__ArraySet__first(val
* self
);
207 val
* model__MVirtualType__lookup_bound(val
* self
, val
* p0
, val
* p1
);
208 #define COLOR_model__MVirtualTypeDef___is_fixed 8
209 short int model__MVirtualType__is_fixed(val
* self
, val
* p0
, val
* p1
);
210 short int model__MVirtualType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
);
211 val
* model__MVirtualType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
212 val
* model__MProperty__to_s(val
* self
);
213 val
* model__MVirtualType__to_s(val
* self
);
214 void model__MVirtualType__init(val
* self
, val
* p0
);
215 #define COLOR_model__MParameterType___mclass 3
216 val
* model__MParameterType__model(val
* self
);
217 #define COLOR_model__MParameterType___rank 4
218 val
* model__MParameterType__to_s(val
* self
);
219 val
* model__MParameterType__lookup_bound(val
* self
, val
* p0
, val
* p1
);
220 short int model__MParameterType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
);
221 val
* model__MParameterType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
222 #define COLOR_model_base__MEntity__model 30
223 val
* model__MNullableType__model(val
* self
);
224 #define COLOR_model__MNullableType___to_s 4
225 short int model__MNullableType__need_anchor(val
* self
);
226 val
* model__MNullableType__as_nullable(val
* self
);
227 val
* model__MNullableType__as_notnullable(val
* self
);
228 #define COLOR_model__MType__as_nullable 40
229 val
* model__MNullableType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
230 short int model__MNullableType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
);
231 long model__MNullableType__length(val
* self
);
232 val
* model__MNullableType__collect_mclassdefs(val
* self
, val
* p0
);
233 #define COLOR_model__MType__collect_mclasses 46
234 val
* model__MNullableType__collect_mclasses(val
* self
, val
* p0
);
235 val
* model__MNullableType__collect_mtypes(val
* self
, val
* p0
);
236 #define COLOR_model__MNullType___model 3
237 void model__MNullType__init(val
* self
, val
* p0
);
238 val
* model__MNullType__to_s(val
* self
);
239 val
* model__MNullType__as_nullable(val
* self
);
240 short int model__MNullType__need_anchor(val
* self
);
241 val
* model__MNullType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
242 short int model__MNullType__can_resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
);
243 val
* model__MNullType__collect_mclassdefs(val
* self
, val
* p0
);
244 val
* model__MNullType__collect_mclasses(val
* self
, val
* p0
);
245 val
* model__MNullType__collect_mtypes(val
* self
, val
* p0
);
246 #define COLOR_model__MSignature___mparameters 3
247 #define COLOR_model__MSignature___return_mtype 4
248 #define COLOR_model__MParameter___mtype 2
249 long model__MSignature__length(val
* self
);
250 #define COLOR_model__MParameter___is_vararg 3
251 #define COLOR_model__MSignature___vararg_rank 5
252 void model__MSignature__init(val
* self
, val
* p0
, val
* p1
);
253 long model__MSignature__arity(val
* self
);
254 val
* NEW_string__FlatBuffer(const struct type
* type
);
255 extern const struct type type_string__FlatBuffer
;
256 void string__FlatBuffer__init(val
* self
);
257 void string__FlatBuffer__append(val
* self
, val
* p0
);
258 #define COLOR_model__MParameter___name 1
259 val
* string__FlatBuffer__to_s(val
* self
);
260 val
* model__MSignature__to_s(val
* self
);
261 extern const struct type type_array__Arraymodel__MParameter
;
262 val
* model__MParameter__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
263 val
* NEW_model__MSignature(const struct type
* type
);
264 extern const struct type type_model__MSignature
;
265 val
* model__MSignature__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
266 void model__MParameter__init(val
* self
, val
* p0
, val
* p1
, short int p2
);
267 val
* model__MParameter__to_s(val
* self
);
268 val
* NEW_model__MParameter(const struct type
* type
);
269 extern const struct type type_model__MParameter
;
270 val
* model__MParameter__model(val
* self
);
271 #define COLOR_model__MProperty___name 2
272 #define COLOR_model__MProperty___visibility 3
273 void model__MProperty__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
274 #define COLOR_model__MProperty___mpropdefs 4
275 val
* model__MProperty__intro(val
* self
);
276 val
* model__MPropDef__model(val
* self
);
277 val
* model__MProperty__model(val
* self
);
278 #define COLOR_model__MType__as_notnullable 41
279 #define COLOR_model__MProperty___lookup_definitions_cache 5
280 val
* more_collections__HashMap2___91d_93d(val
* self
, val
* p0
, val
* p1
);
281 #define COLOR_array__Arraymodel__MProperty_VTMPROPDEF 0
282 void more_collections__HashMap2___91d_93d_61d(val
* self
, val
* p0
, val
* p1
, val
* p2
);
283 val
* model__MProperty__select_most_specific(val
* self
, val
* p0
, val
* p1
);
284 val
* model__MProperty__lookup_super_definitions(val
* self
, val
* p0
, val
* p1
);
285 short int poset__POSetElement___60d(val
* self
, val
* p0
);
286 val
* model__MProperty__lookup_all_definitions(val
* self
, val
* p0
, val
* p1
);
287 val
* model__MProperty__lookup_first_definition(val
* self
, val
* p0
, val
* p1
);
288 #define COLOR_model__MProperty___lookup_all_definitions_cache 6
289 val
* array__AbstractArrayRead__reversed(val
* self
);
290 void model__MMethod__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
291 #define COLOR_model__MMethod___is_toplevel 8
292 #define COLOR_model__MMethod___is_init 9
293 #define COLOR_model__MMethod___is_new 10
294 short int model__MMethod__is_init_for(val
* self
, val
* p0
);
295 void model__MAttribute__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
296 void model__MVirtualTypeProp__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
297 #define COLOR_model__MVirtualTypeProp___mvirtualtype 8
298 #define COLOR_model__MPropDef___location 1
299 #define COLOR_model__MPropDef___mproperty 3
300 #define COLOR_model__MPropDef_VTMPROPERTY 0
301 #define COLOR_model__MPropDef___to_s 4
302 void model__MPropDef__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
303 val
* model__MPropDef__name(val
* self
);
304 short int model__MPropDef__is_intro(val
* self
);
305 #define COLOR_model__MPropDef_VTMPROPDEF 2
306 val
* model__MPropDef__lookup_next_definition(val
* self
, val
* p0
, val
* p1
);
307 void model__MMethodDef__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
308 #define COLOR_model__MMethodDef___msignature 7
309 #define COLOR_model__MMethodDef___is_abstract 8
310 #define COLOR_model__MMethodDef___is_intern 9
311 #define COLOR_model__MMethodDef___is_extern 10
312 void model__MAttributeDef__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
313 #define COLOR_model__MAttributeDef___static_mtype 7
314 void model__MVirtualTypeDef__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
315 #define COLOR_model__MClassKind___to_s 0
316 #define COLOR_model__MClassKind___need_init 1
317 void model__MClassKind__init(val
* self
, val
* p0
, short int p1
);
318 val
* model__Object__interface_kind(val
* self
);
319 val
* model__Object__extern_kind(val
* self
);
320 short int model__MClassKind__can_specialize(val
* self
, val
* p0
);
321 val
* NEW_model__MClassKind(const struct type
* type
);
322 extern const struct type type_model__MClassKind
;
323 val
* model__Object__abstract_kind(val
* self
);
324 val
* model__Object__concrete_kind(val
* self
);