1 #include "nit.common.h"
2 #define COLOR_nit__modelize_property__ToolContext___modelize_property_phase 0
3 extern const char FILE_nit__modelize_property
[];
4 #define COLOR_nit__parser_nodes__AModule___n_classdefs 11
5 extern const char FILE_nit__parser_nodes
[];
6 val
* nit___nit__ANodes___standard__abstract_collection__Collection__iterator(val
* self
);
7 #define COLOR_standard__abstract_collection__Iterator__is_ok 16
8 #define COLOR_standard__abstract_collection__Iterator__item 17
9 #define COLOR_nit__modelize_class__AClassdef___all_defs 8
10 short int standard___standard__Array___standard__kernel__Object___61d_61d(val
* self
, val
* p0
);
11 #define COLOR_nit__phase__Phase___toolcontext 0
12 extern const char FILE_nit__phase
[];
13 val
* nit__modelbuilder_base___ToolContext___modelbuilder(val
* self
);
14 void nit__modelize_property___ModelBuilder___build_properties(val
* self
, val
* p0
);
15 #define COLOR_standard__abstract_collection__Iterator__next 18
16 #define COLOR_standard__abstract_collection__Iterator__finish 19
17 #define COLOR_nit__modelize_property__ModelBuilder___mpropdef2npropdef 0
18 val
* standard___standard__HashMap___standard__abstract_collection__MapRead__get_or_null(val
* self
, val
* p0
);
19 #define COLOR_standard__kernel__Object___61d_61d 4
20 #define COLOR_nit__modelbuilder_base__ModelBuilder___toolcontext 10
21 extern const char FILE_nit__modelbuilder_base
[];
22 void nit__phase___ToolContext___run_phases_on_npropdef(val
* self
, val
* p0
);
23 extern const struct type type_nit__MMethodDef
;
24 #define COLOR_nit__model__MPropDef___mproperty 6
25 extern const char FILE_nit__model
[];
26 #define COLOR_nit__model__MMethod___is_root_init 18
27 #define COLOR_nit__modelize_class__ModelBuilder___mclassdef2nclassdef 2
28 extern const char FILE_nit__modelize_class
[];
29 #define COLOR_nit__model__MPropDef___mclassdef 5
30 val
* NEW_standard__Array(const struct type
* type
);
31 extern const struct type type_standard__Array__nit__AAttrPropdef
;
32 void standard___standard__Array___standard__kernel__Object__init(val
* self
);
33 #define COLOR_nit__parser_nodes__AClassdef___n_propdefs 9
34 extern const struct type type_nit__AAttrPropdef
;
35 void standard___standard__Array___standard__abstract_collection__SimpleCollection__add(val
* self
, val
* p0
);
36 #define COLOR_nit__modelize_property__AClassdef___build_properties_is_done 4
37 #define COLOR_nit__modelize_class__AClassdef___mclassdef 7
38 #define COLOR_nit__model__MClassDef___in_hierarchy 15
39 val
* poset___poset__POSetElement___direct_greaters(val
* self
);
40 #define COLOR_standard__abstract_collection__Collection__iterator 25
41 short int standard___standard__HashMap___standard__abstract_collection__MapRead__has_key(val
* self
, val
* p0
);
42 val
* standard___standard__HashMap___standard__abstract_collection__MapRead___91d_93d(val
* self
, val
* p0
);
43 void nit__modelize_property___MClassDef___build_self_type(val
* self
, val
* p0
, val
* p1
);
44 val
* standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__iterator(val
* self
);
45 short int standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__is_ok(val
* self
);
46 val
* standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__item(val
* self
);
47 #define COLOR_nit__modelize_property__APropdef__build_property 40
48 #define COLOR_nit__modelize_property__APropdef__build_signature 41
49 extern const struct type type_nit__ATypePropdef
;
50 #define COLOR_nit__modelize_property__APropdef___mpropdef 4
51 #define COLOR_nit__model__MVirtualTypeDef___bound 13
52 #define COLOR_nit__model__MClassDef___bound_mtype 7
53 #define COLOR_nit__model__MClassDef___mmodule 5
54 short int nit__modelize_property___ModelBuilder___check_virtual_types_circularity(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
55 #define COLOR_nit__mmodule__MModule___model 29
56 extern const char FILE_nit__mmodule
[];
57 #define COLOR_nit__model__Model___null_type 7
58 void nit__modelize_property___ATypePropdef___APropdef__check_signature(val
* self
, val
* p0
);
59 #define COLOR_nit__modelize_property__APropdef__check_signature 43
60 void standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__next(val
* self
);
61 void standard__array___standard__array__ArrayIterator___standard__abstract_collection__Iterator__finish(val
* self
);
62 void nit__modelize_property___ModelBuilder___process_default_constructors(val
* self
, val
* p0
);
63 #define COLOR_nit__modelize_property__ModelBuilder___the_root_init_mmethod 1
64 short int nit___nit__MClassDef___is_intro(val
* self
);
65 #define COLOR_nit__model__MClassDef___mclass 6
66 #define COLOR_nit__model__MClass___name 6
67 val
* standard___standard__NativeString___to_s_with_length(char* self
, long p0
);
68 val
* NEW_nit__MMethod(const struct type
* type
);
69 extern const struct type type_nit__MMethod
;
70 #define COLOR_nit__model__MClass___visibility 14
71 #define COLOR_nit__model__MProperty__intro_mclassdef_61d 31
72 #define COLOR_nit__model__MProperty__name_61d 32
73 #define COLOR_nit__model__MProperty__visibility_61d 33
74 #define COLOR_standard__kernel__Object__init 0
75 val
* NEW_nit__MMethodDef(const struct type
* type
);
76 #define COLOR_nit__parser_nodes__ANode___location 0
77 #define COLOR_nit__model__MPropDef__mclassdef_61d 27
78 #define COLOR_nit__model__MPropDef__mproperty_61d 28
79 #define COLOR_nit__model__MPropDef__location_61d 29
80 extern const struct type type_standard__Array__nit__MParameter
;
81 val
* NEW_nit__MSignature(const struct type
* type
);
82 extern const struct type type_nit__MSignature
;
83 #define COLOR_nit__model__MSignature__mparameters_61d 57
84 #define COLOR_nit__model__MSignature__return_mtype_61d 58
85 #define COLOR_nit__model__MMethodDef___msignature 13
86 #define COLOR_nit__model__MMethodDef___new_msignature 14
87 #define COLOR_nit__model__MMethod___is_init 17
88 #define COLOR_nit__modelize_property__AClassdef___mfree_init 5
89 val
* NEW_standard__NativeArray(int length
, const struct type
* type
);
90 extern const struct type type_standard__NativeArray__standard__String
;
91 #define COLOR_standard__string__Object__to_s 3
92 #define COLOR_standard__string__NativeArray__native_to_s 16
93 void nit___nit__ToolContext___info(val
* self
, val
* p0
, long p1
);
94 #define COLOR_nit__model__MClassDef___mpropdefs 17
95 #define COLOR_nit__model__MProperty___name 5
96 extern const struct type type_nit__AStdClassdef
;
97 extern const struct type type_standard__Array__nit__MProperty
;
98 extern const struct type type_nit__AMethPropdef
;
99 #define COLOR_nit__modelize_property__AMethPropdef___is_autoinit 9
100 #define COLOR_nit__model__MSignature___mparameters 6
101 #define COLOR_nit__model__MParameter___mtype 5
102 val
* NEW_nit__MParameter(const struct type
* type
);
103 extern const struct type type_nit__MParameter
;
104 #define COLOR_nit__model__MParameter___name 4
105 extern const struct type type_nit__MNullableType
;
106 #define COLOR_nit__model__MParameter__name_61d 26
107 #define COLOR_nit__model__MParameter__mtype_61d 27
108 #define COLOR_nit__model__MParameter__is_vararg_61d 28
109 #define COLOR_nit__model__MParameter__is_default_61d 29
110 #define COLOR_nit__model__MProperty___is_autoinit 11
111 #define COLOR_nit__modelize_property__AAttrPropdef___mreadpropdef 17
112 #define COLOR_nit__modelize_property__AAttrPropdef___noinit 13
113 val
* nit__annotation___Prod___get_single_annotation(val
* self
, val
* p0
, val
* p1
);
114 #define COLOR_nit__modelize_property__AAttrPropdef___has_value 15
115 #define COLOR_nit__model__MSignature___return_mtype 7
116 #define COLOR_nit__modelize_property__AAttrPropdef___mwritepropdef 18
117 val
* nit___nit__MProperty___lookup_super_definitions(val
* self
, val
* p0
, val
* p1
);
118 short int standard___standard__AbstractArrayRead___standard__abstract_collection__Collection__is_empty(val
* self
);
119 #define COLOR_nit__model__MProperty___intro_mclassdef 4
120 val
* nit___nit__ToolContext___error(val
* self
, val
* p0
, val
* p1
);
121 void standard___standard__AbstractArray___standard__abstract_collection__RemovableCollection__clear(val
* self
);
122 void nit___nit__ModelBuilder___error(val
* self
, val
* p0
, val
* p1
);
123 #define COLOR_nit__parser_nodes__AAnnotation___n_args 14
124 short int nit___nit__ANodes___standard__abstract_collection__Collection__is_empty(val
* self
);
125 val
* nit__literal___AExpr___as_id(val
* self
);
126 #define COLOR_standard__string__String___43d 71
127 val
* nit___nit__ModelBuilder___try_get_mproperty_by_name(val
* self
, val
* p0
, val
* p1
, val
* p2
);
128 #define COLOR_nit__model__MProperty___intro 13
129 #define COLOR_nit__model__MClass___mclass_type 17
130 val
* nit___nit__MSignature___MType__resolve_for(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
131 #define COLOR_nit__model__MParameter___is_default 7
132 #define COLOR_nit__model__MParameter___is_vararg 6
133 val
* standard___standard__SequenceRead___Collection__first(val
* self
);
134 #define COLOR_standard__array__AbstractArrayRead___length 0
135 extern const struct type type_standard__Int
;
136 extern const char FILE_standard__kernel
[];
137 #define COLOR_nit__model__MMethodDef___initializers 15
138 val
* standard___standard__Array___standard__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
);
139 val
* standard__string___Collection___join(val
* self
, val
* p0
);
140 void nit___nit__ModelBuilder___warning(val
* self
, val
* p0
, val
* p1
, val
* p2
);
141 #define COLOR_nit__modelize_property__MClass___root_init 4
142 void standard___standard__Sequence___prepend(val
* self
, val
* p0
);
143 void standard___standard__Array___standard__abstract_collection__SimpleCollection__add_all(val
* self
, val
* p0
);
144 #define COLOR_nit__modelize_property__MPropDef___has_supercall 4
145 #define COLOR_nit__model__MType__undecorate 45
146 extern const struct type type_nit__MClassType
;
147 #define COLOR_nit__model__MClassType___mclass 6
148 #define COLOR_nit__model__MClass___intro 16
149 extern const struct type type_nit__MVirtualType
;
150 #define COLOR_nit__model__MVirtualType___mproperty 8
151 #define COLOR_nit__model__MProperty___visibility 10
152 extern const struct type type_nit__MParameterType
;
153 extern const struct type type_nit__MNullType
;
154 void nit___nit__ANode___debug(val
* self
, val
* p0
);
155 val
* nit___nit__MModule___visibility_for(val
* self
, val
* p0
);
156 short int standard___standard__Comparable____62d(val
* self
, val
* p0
);
157 extern const struct type type_nit__AType
;
158 #define COLOR_nit__parser_nodes__AType___n_types 9
159 #define COLOR_nit__modelbuilder_base__AType___mtype 4
160 void nit__modelize_property___ModelBuilder___check_visibility(val
* self
, val
* p0
, val
* p1
, val
* p2
);
161 extern const struct type type_nit__MGenericType
;
162 #define COLOR_nit__model__MGenericType___arguments 17
163 #define COLOR_nit__model__MVirtualTypeProp___mvirtualtype 16
164 val
* NEW_poset__POSet(const struct type
* type
);
165 extern const struct type type_poset__POSet__nit__MType
;
166 val
* NEW_standard__List(const struct type
* type
);
167 extern const struct type type_standard__List__nit__MType
;
168 void standard___standard__Sequence___SimpleCollection__add(val
* self
, val
* p0
);
169 short int standard___standard__List___standard__abstract_collection__Collection__is_empty(val
* self
);
170 val
* standard___standard__List___standard__abstract_collection__Sequence__pop(val
* self
);
171 #define COLOR_nit__model__MType__need_anchor 28
172 extern const struct type type_standard__Array__nit__MType
;
173 void standard___standard__Array___with_capacity(val
* self
, long p0
);
174 #define COLOR_nit__model__MProxyType___mtype 6
175 void standard___standard__AbstractArray___standard__abstract_collection__Sequence__push(val
* self
, val
* p0
);
176 val
* nit___nit__MProperty___lookup_definitions(val
* self
, val
* p0
, val
* p1
);
177 short int poset___poset__POSet___has_edge(val
* self
, val
* p0
, val
* p1
);
178 void poset___poset__POSet___add_edge(val
* self
, val
* p0
, val
* p1
);
179 #define COLOR_nit__modelize_property__MClassDef___mprop2npropdef 4
180 extern const struct type type_nit__MVirtualTypeProp
;
181 val
* nit__model_base___standard__Sys___public_visibility(val
* self
);
182 #define COLOR_nit__model__MVirtualTypeDef___is_fixed 14
183 val
* NEW_nit__MVirtualTypeDef(const struct type
* type
);
184 extern const struct type type_nit__MVirtualTypeDef
;
185 #define COLOR_nit__model__MClassDef___location 8
186 #define COLOR_nullable__nit__modelize_property__APropdef__MPROPDEF 0
187 #define COLOR_nit__modelbuilder_base__AVisibility__mvisibility 40
188 val
* nit__model_base___standard__Sys___intrude_visibility(val
* self
);
189 val
* nit__model_base___standard__Sys___private_visibility(val
* self
);
190 val
* nit__model_base___standard__Sys___protected_visibility(val
* self
);
191 void nit___nit__ModelBuilder___advice(val
* self
, val
* p0
, val
* p1
, val
* p2
);
192 #define COLOR_nit__parser_nodes__ADefinition___n_doc 10
193 val
* nit__modelbuilder_base___ADoc___to_mdoc(val
* self
);
194 #define COLOR_nit__mdoc__MEntity___mdoc 0
195 #define COLOR_nit__mdoc__MDoc___original_mentity 1
196 short int nit___nit__MPropDef___is_intro(val
* self
);
197 short int standard___standard__Comparable____62d_61d(val
* self
, val
* p0
);
198 val
* NEW_nit__MDeprecationInfo(const struct type
* type
);
199 extern const struct type type_nit__MDeprecationInfo
;
200 #define COLOR_nit__mdoc__MDeprecationInfo___mdoc 0
201 #define COLOR_nit__mdoc__MEntity___deprecation 1
202 #define COLOR_standard__abstract_collection__MapRead__has_key 18
203 #define COLOR_standard__abstract_collection__MapRead___91d_93d 19
204 #define COLOR_nit__location__Location___line_start 1
205 val
* standard__string___Int___Object__to_s(long self
);
206 #define COLOR_nit__mmodule__MModule___mgroup 30
207 #define COLOR_nit__modelbuilder_base__ModelBuilder___model 9
208 val
* nit__model___Model___get_mproperties_by_name(val
* self
, val
* p0
);
209 extern const char FILE_nit__mproject
[];
210 #define COLOR_nit__mproject__MGroup___mproject 8
211 val
* nit___nit__MProperty___nit__model_base__MEntity__full_name(val
* self
);
212 #define COLOR_nit__modelize_property__ASignature___is_visited 4
213 #define COLOR_nit__modelize_property__ASignature___param_names 5
214 #define COLOR_nit__modelize_property__ASignature___param_types 6
215 #define COLOR_nit__modelize_property__ASignature___vararg_rank 7
216 #define COLOR_nit__modelize_property__ASignature___ret_type 8
217 #define COLOR_nit__parser_nodes__ASignature___n_params 10
218 #define COLOR_nit__parser_nodes__AParam___n_id 5
219 val
* nit__lexer_work___Token___text(val
* self
);
220 #define COLOR_nit__parser_nodes__AParam___n_type 6
221 val
* nit___nit__ModelBuilder___resolve_mtype_unchecked(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
);
222 long standard___standard__Int___Discrete__successor(long self
, long p0
);
223 #define COLOR_nit__parser_nodes__AParam___n_dotdotdot 7
224 #define COLOR_nit__parser_nodes__ASignature___n_type 12
225 val
* nit___nit__ModelBuilder___resolve_mtype(val
* self
, val
* p0
, val
* p1
, val
* p2
);
226 #define COLOR_nit__modelize_property__AParam___mparameter 4
227 #define COLOR_nit__parser_nodes__AMethPropdef___n_kwinit 14
228 #define COLOR_nit__parser_nodes__AMethPropdef___n_methid 16
229 #define COLOR_nit__parser_nodes__ANode___parent 1
230 extern const struct type type_nit__AModule
;
231 #define COLOR_nit__parser_nodes__AModule___n_moduledecl 8
232 #define COLOR_nit__parser_nodes__AMethPropdef___n_signature 17
233 long nit___nit__ANodes___standard__abstract_collection__Collection__length(val
* self
);
234 #define COLOR_nit__parser_nodes__ADefinition___n_visibility 12
235 extern const struct type type_nit__APublicVisibility
;
236 #define COLOR_nit__parser_nodes__AMethPropdef___n_kwnew 15
237 extern const struct type type_nit__AIdMethid
;
238 #define COLOR_nit__parser_nodes__AIdMethid___n_id 4
239 val
* nit__parser_work___Prod___collect_text(val
* self
);
240 #define COLOR_nit__modelize_property__AMethid__is_binary 40
241 #define COLOR_nit__modelize_property__AMethid__min_arity 41
242 short int nit__modelize_property___AMethPropdef___look_like_a_root_init(val
* self
, val
* p0
, val
* p1
);
243 #define COLOR_nit__parser_nodes__ADefinition___n_kwredef 11
244 extern const struct type type_nullable__nit__MMethod
;
245 #define COLOR_nit__parser_nodes__AMethPropdef___n_block 19
246 extern const struct type type_nit__ABlockExpr
;
247 #define COLOR_nit__parser_nodes__ABlockExpr___n_expr 10
248 val
* nit__modelize_property___APropdef___new_property_visibility(val
* self
, val
* p0
, val
* p1
, val
* p2
);
249 #define COLOR_nit__model__MMethod___is_new 19
250 #define COLOR_nit__model__MClass___has_new_factory 19
251 #define COLOR_nit__model__MMethod___is_toplevel 16
252 short int nit__modelize_property___APropdef___check_redef_keyword(val
* self
, val
* p0
, val
* p1
, val
* p2
, short int p3
, val
* p4
);
253 extern const struct type type_nit__AMainMethPropdef
;
254 void nit__modelize_property___APropdef___check_redef_property_visibility(val
* self
, val
* p0
, val
* p1
, val
* p2
);
255 #define COLOR_standard__abstract_collection__MapRead__iterator 17
256 #define COLOR_standard__abstract_collection__MapIterator__is_ok 16
257 #define COLOR_standard__abstract_collection__MapIterator__key 17
258 #define COLOR_standard__abstract_collection__MapIterator__item 18
259 #define COLOR_standard__abstract_collection__MapIterator__next 19
260 #define COLOR_standard__abstract_collection__Map___91d_93d_61d 25
261 void nit__modelize_property___APropdef___set_doc(val
* self
, val
* p0
, val
* p1
);
262 void standard___standard__HashMap___standard__abstract_collection__Map___91d_93d_61d(val
* self
, val
* p0
, val
* p1
);
263 #define COLOR_nit__modelize_property__AMethid__accept_special_last_parameter 42
264 #define COLOR_nit__modelize_property__AMethid__return_is_mandatory 43
265 extern const struct type type_standard__Array__standard__String
;
266 short int nit__modelize_property___ASignature___visit_signature(val
* self
, val
* p0
, val
* p1
);
267 long nit___nit__MSignature___arity(val
* self
);
268 #define COLOR_nit__model__MClassDef___supertypes 14
269 val
* nit___nit__MClassType___MType__anchor_to(val
* self
, val
* p0
, val
* p1
);
270 val
* nit___nit__ModelBuilder___try_get_mproperty_by_name2(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
271 #define COLOR_nit__model__MSignature___vararg_rank 8
272 val
* nit___nit__ANodes___standard__abstract_collection__SequenceRead___91d_93d(val
* self
, long p0
);
273 short int standard___standard__Collection___not_empty(val
* self
);
274 val
* standard___standard__SequenceRead___last(val
* self
);
275 #define COLOR_nit__model__MMethodDef___is_abstract 16
276 #define COLOR_nit__model__MMethodDef___is_intern 17
277 #define COLOR_nit__parser_nodes__AMethPropdef___n_extern_code_block 22
278 #define COLOR_nit__model__MMethodDef___is_extern 18
279 short int nit__modelize_property___ASignature___check_signature(val
* self
, val
* p0
, val
* p1
);
280 short int nit___nit__ModelBuilder___check_sametype(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
);
281 short int nit___nit__ModelBuilder___check_subtype(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
, val
* p4
);
282 void nit__modelize_property___AMethPropdef___APropdef__check_repeated_types(val
* self
, val
* p0
);
283 val
* nit___nit__MPropDef___nit__model_base__MEntity__name(val
* self
);
284 #define COLOR_nit__modelize_property__AAttrPropdef___mtype 9
285 #define COLOR_nit__modelize_property__AAttrPropdef___is_lazy 14
286 #define COLOR_nit__modelize_property__AAttrPropdef___mlazypropdef 16
287 #define COLOR_nit__parser_nodes__AAttrPropdef___n_id2 20
288 #define COLOR_nit__model__MClass___kind 13
289 #define COLOR_nit__model__MClassKind___need_init 1
290 val
* NEW_nit__MAttribute(const struct type
* type
);
291 extern const struct type type_nit__MAttribute
;
292 val
* NEW_nit__MAttributeDef(const struct type
* type
);
293 extern const struct type type_nit__MAttributeDef
;
294 extern const char FILE_nit__mdoc
[];
295 #define COLOR_nit__parser_nodes__AAttrPropdef___n_expr 23
296 #define COLOR_nit__parser_nodes__AAttrPropdef___n_block 25
297 val
* nit__model_base___standard__Sys___none_visibility(val
* self
);
298 val
* nit__annotation___AAnnotation___arg_as_id(val
* self
, val
* p0
);
299 #define COLOR_nit__parser_nodes__AAttrPropdef___n_type 21
300 #define COLOR_nit__model__MType__resolve_for 26
301 extern const struct type type_nit__ANewExpr
;
302 #define COLOR_nit__parser_nodes__ANewExpr___n_type 11
303 extern const struct type type_nit__AIntExpr
;
304 val
* nit___nit__ModelBuilder___try_get_mclass_by_name(val
* self
, val
* p0
, val
* p1
, val
* p2
);
305 extern const struct type type_nit__AByteExpr
;
306 extern const struct type type_nit__AFloatExpr
;
307 extern const struct type type_nit__ACharExpr
;
308 extern const struct type type_nit__ABoolExpr
;
309 extern const struct type type_nit__ASuperstringExpr
;
310 extern const struct type type_nit__AStringFormExpr
;
311 #define COLOR_nit__model__MAttributeDef___static_mtype 13
312 val
* nit__model___Model___get_mclasses_by_name(val
* self
, val
* p0
);
313 void nit__modelize_property___AAttrPropdef___APropdef__check_repeated_types(val
* self
, val
* p0
);
314 void nit__modelize_property___AAttrPropdef___check_method_signature(val
* self
, val
* p0
, val
* p1
);
315 #define COLOR_nit__parser_nodes__ATypePropdef___n_id 13
316 val
* NEW_nit__MVirtualTypeProp(const struct type
* type
);
317 #define COLOR_standard__string__Text__chars 27
318 extern const struct type type_standard__Char
;
319 #define COLOR_nit__parser_nodes__ATypePropdef___n_type 14