Merge: Model utils
[nit.git] / c_src / modelbuilder.sep.0.h
1 #include "nit.common.h"
2 extern const int COLOR_modelbuilder__ToolContext___64dopt_path;
3 val* modelbuilder__ToolContext__opt_path(val* self);
4 void modelbuilder__ToolContext__opt_path_61d(val* self, val* p0);
5 extern const int COLOR_modelbuilder__ToolContext___64dopt_only_metamodel;
6 val* modelbuilder__ToolContext__opt_only_metamodel(val* self);
7 void modelbuilder__ToolContext__opt_only_metamodel_61d(val* self, val* p0);
8 extern const int COLOR_modelbuilder__ToolContext___64dopt_only_parse;
9 val* modelbuilder__ToolContext__opt_only_parse(val* self);
10 void modelbuilder__ToolContext__opt_only_parse_61d(val* self, val* p0);
11 extern const int COLOR_modelbuilder__ToolContext__init;
12 extern const int COLOR_toolcontext__ToolContext__option_context;
13 extern const int COLOR_modelbuilder__ToolContext__opt_path;
14 extern const int COLOR_modelbuilder__ToolContext__opt_only_parse;
15 extern const int COLOR_modelbuilder__ToolContext__opt_only_metamodel;
16 val* NEW_array__Array(const struct type* type);
17 extern const struct type type_array__Arrayopts__Option;
18 val* NEW_array__NativeArray(int length, const struct type* type);
19 extern const struct type type_array__NativeArrayopts__Option;
20 extern const int COLOR_array__Array__with_native;
21 extern const int COLOR_opts__OptionContext__add_option;
22 void modelbuilder__ToolContext__init(val* self);
23 extern const int COLOR_modelbuilder__ToolContext__modelbuilder_real;
24 val* modelbuilder__ToolContext__modelbuilder(val* self);
25 extern const int COLOR_modelbuilder__ToolContext___64dmodelbuilder_real;
26 val* modelbuilder__ToolContext__modelbuilder_real(val* self);
27 void modelbuilder__ToolContext__modelbuilder_real_61d(val* self, val* p0);
28 extern const int COLOR_phase__ToolContext__phases_list;
29 extern const int COLOR_abstract_collection__Collection__iterator;
30 extern const int COLOR_abstract_collection__Iterator__is_ok;
31 extern const int COLOR_abstract_collection__Iterator__item;
32 extern const int COLOR_modelbuilder__Phase__process_mainmodule;
33 extern const int COLOR_abstract_collection__Iterator__next;
34 void modelbuilder__ToolContext__run_global_phases(val* self, val* p0);
35 void modelbuilder__Phase__process_mainmodule(val* self, val* p0);
36 extern const int COLOR_modelbuilder__ModelBuilder___64dmodel;
37 val* modelbuilder__ModelBuilder__model(val* self);
38 void modelbuilder__ModelBuilder__model_61d(val* self, val* p0);
39 extern const int COLOR_modelbuilder__ModelBuilder___64dtoolcontext;
40 val* modelbuilder__ModelBuilder__toolcontext(val* self);
41 void modelbuilder__ModelBuilder__toolcontext_61d(val* self, val* p0);
42 extern const int COLOR_modelbuilder__ModelBuilder__model;
43 extern const int COLOR_mmodule__Model__mmodules;
44 extern const int COLOR_array__Collection__to_a;
45 extern const int COLOR_mmodule__Model__mmodule_importation_hierarchy;
46 extern const int COLOR_sorter__AbstractSorter__sort;
47 extern const struct type type_array__Arrayparser_nodes__AModule;
48 extern const int COLOR_array__Array__init;
49 extern const int COLOR_modelbuilder__ModelBuilder__mmodule2nmodule;
50 extern const int COLOR_abstract_collection__MapRead___91d_93d;
51 extern const int COLOR_abstract_collection__SimpleCollection__add;
52 extern const int COLOR_modelbuilder__ModelBuilder__toolcontext;
53 extern const int COLOR_phase__ToolContext__run_phases;
54 extern const int COLOR_opts__Option__value;
55 val* string__NativeString__to_s_with_length(char* self, long p0);
56 extern const int COLOR_toolcontext__ToolContext__info;
57 extern const int COLOR_kernel__Object__exit;
58 void modelbuilder__ModelBuilder__run_phases(val* self);
59 extern const int COLOR_modelbuilder__ModelBuilder__model_61d;
60 extern const int COLOR_modelbuilder__ModelBuilder__toolcontext_61d;
61 extern const int COLOR_modelbuilder__ToolContext__modelbuilder_real_61d;
62 extern const int COLOR_modelbuilder__ModelBuilder__paths;
63 extern const int COLOR_abstract_collection__Sequence__append;
64 extern const int COLOR_environ__String__environ;
65 extern const int COLOR_abstract_collection__Collection__is_empty;
66 val* BOX_kernel__Char(char);
67 extern const int COLOR_string_search__String__split_with;
68 extern const struct type type_array__Arraykernel__Object;
69 extern const int COLOR_array__Array__with_capacity;
70 extern const int COLOR_string__Object__to_s;
71 extern const int COLOR_file__String__file_exists;
72 extern const int COLOR_kernel__Object__sys;
73 extern const int COLOR_string__Sys__program_name;
74 extern const int COLOR_file__String__dirname;
75 extern const int COLOR_file__String__simplify_path;
76 void modelbuilder__ModelBuilder__init(val* self, val* p0, val* p1);
77 extern const int COLOR_time__Object__get_time;
78 val* NEW_array__ArraySet(const struct type* type);
79 extern const struct type type_array__ArraySetmmodule__MModule;
80 extern const int COLOR_array__ArraySet__init;
81 extern const int COLOR_modelbuilder__ModelBuilder__load_module;
82 extern const int COLOR_modelbuilder__AModule__mmodule;
83 extern const struct type type_array__NativeArraykernel__Object;
84 val* BOX_kernel__Int(long);
85 extern const int COLOR_toolcontext__ToolContext__check_errors;
86 val* modelbuilder__ModelBuilder__parse(val* self, val* p0);
87 extern const int COLOR_model__Model__get_mclasses_by_name;
88 extern const int COLOR_mmodule__MModule__in_importation;
89 extern const int COLOR_model__MClass__intro_mmodule;
90 extern const int COLOR_poset__POSetElement___60d_61d;
91 extern const int COLOR_model__MClass__visibility;
92 extern const int COLOR_mmodule__MModule__is_visible;
93 extern const int COLOR_model__MClass__full_name;
94 extern const int COLOR_modelbuilder__ModelBuilder__error;
95 val* modelbuilder__ModelBuilder__try_get_mclass_by_name(val* self, val* p0, val* p1, val* p2);
96 extern const int COLOR_model__Model__get_mproperties_by_name;
97 extern const int COLOR_modelbuilder__ModelBuilder__try_get_mproperty_by_name2_cache;
98 extern const int COLOR_more_collections__HashMap3___91d_93d;
99 extern const int COLOR_model__MType__has_mproperty;
100 extern const int COLOR_model__MProperty__intro_mclassdef;
101 extern const int COLOR_model__MClassDef__mmodule;
102 extern const int COLOR_model__MProperty__visibility;
103 extern const int COLOR_model__MClassDef__bound_mtype;
104 extern const int COLOR_model__MType__is_subtype;
105 extern const struct type type_array__Arraymodel__MProperty;
106 extern const int COLOR_model__MProperty__full_name;
107 extern const int COLOR_more_collections__HashMap3___91d_93d_61d;
108 val* modelbuilder__ModelBuilder__try_get_mproperty_by_name2(val* self, val* p0, val* p1, val* p2, val* p3);
109 extern const int COLOR_modelbuilder__ModelBuilder___64dtry_get_mproperty_by_name2_cache;
110 val* modelbuilder__ModelBuilder__try_get_mproperty_by_name2_cache(val* self);
111 void modelbuilder__ModelBuilder__try_get_mproperty_by_name2_cache_61d(val* self, val* p0);
112 extern const int COLOR_modelbuilder__ModelBuilder__try_get_mproperty_by_name2;
113 val* modelbuilder__ModelBuilder__try_get_mproperty_by_name(val* self, val* p0, val* p1, val* p2);
114 extern const int COLOR_modelbuilder__ModelBuilder___64dpaths;
115 val* modelbuilder__ModelBuilder__paths(val* self);
116 void modelbuilder__ModelBuilder__paths_61d(val* self, val* p0);
117 extern const struct type type_array__Arraystring__String;
118 extern const int COLOR_mmodule__MModule__mgroup;
119 extern const int COLOR_mproject__MGroup__filepath;
120 extern const int COLOR_string__AbstractString__has_suffix;
121 extern const int COLOR_string__String___43d;
122 extern const int COLOR_modelbuilder__ModelBuilder__get_mgroup;
123 extern const int COLOR_mproject__MGroup__parent;
124 extern const int COLOR_mproject__MGroup__mproject;
125 extern const int COLOR_mproject__MProject__root;
126 extern const int COLOR_file__String__join_path;
127 extern const int COLOR_abstract_collection__Collection__has;
128 extern const int COLOR_kernel__Object___33d_61d;
129 extern const int COLOR_modelbuilder__ModelBuilder__module_absolute_path;
130 extern const int COLOR_string__Collection__join;
131 val* modelbuilder__ModelBuilder__get_mmodule_by_name(val* self, val* p0, val* p1, val* p2);
132 extern const int COLOR_modelbuilder__ModelBuilder___64didentified_files;
133 val* modelbuilder__ModelBuilder__identified_files(val* self);
134 void modelbuilder__ModelBuilder__identified_files_61d(val* self, val* p0);
135 extern const int COLOR_toolcontext__ToolContext__error;
136 extern const int COLOR_file__String__basename;
137 extern const int COLOR_modelbuilder__ModelBuilder__identified_files;
138 extern const int COLOR_abstract_collection__MapRead__has_key;
139 val* NEW_mproject__MProject(const struct type* type);
140 extern const struct type type_mproject__MProject;
141 extern const int COLOR_mproject__MProject__init;
142 val* NEW_mproject__MGroup(const struct type* type);
143 extern const struct type type_mproject__MGroup;
144 extern const int COLOR_mproject__MGroup__init;
145 extern const int COLOR_mproject__MGroup__filepath_61d;
146 extern const int COLOR_mproject__MProject__root_61d;
147 val* NEW_modelbuilder__ModulePath(const struct type* type);
148 extern const struct type type_modelbuilder__ModulePath;
149 extern const int COLOR_modelbuilder__ModulePath__init;
150 extern const int COLOR_abstract_collection__Map___91d_93d_61d;
151 val* modelbuilder__ModelBuilder__identify_file(val* self, val* p0);
152 extern const int COLOR_modelbuilder__ModelBuilder___64dmgroups;
153 val* modelbuilder__ModelBuilder__mgroups(val* self);
154 void modelbuilder__ModelBuilder__mgroups_61d(val* self, val* p0);
155 extern const int COLOR_modelbuilder__ModelBuilder__mgroups;
156 extern const int COLOR_mproject__MGroup__full_name;
157 val* modelbuilder__ModelBuilder__get_mgroup(val* self, val* p0);
158 extern const int COLOR_file__Object__getcwd;
159 val* modelbuilder__ModelBuilder__module_absolute_path(val* self, val* p0);
160 extern const int COLOR_file__String__file_extension;
161 val* NEW_file__IFStream(const struct type* type);
162 extern const struct type type_file__IFStream;
163 extern const int COLOR_file__IFStream__open;
164 val* NEW_lexer__Lexer(const struct type* type);
165 extern const struct type type_lexer__Lexer;
166 val* NEW_location__SourceFile(const struct type* type);
167 extern const struct type type_location__SourceFile;
168 extern const int COLOR_location__SourceFile__init;
169 extern const int COLOR_lexer__Lexer__init;
170 val* NEW_parser__Parser(const struct type* type);
171 extern const struct type type_parser__Parser;
172 extern const int COLOR_parser__Parser__init;
173 extern const int COLOR_parser__Parser__parse;
174 extern const int COLOR_stream__IOS__close;
175 extern const int COLOR_parser_nodes__Start__n_base;
176 extern const int COLOR_parser_nodes__Start__n_eof;
177 extern const struct type type_parser_nodes__AError;
178 extern const int COLOR_lexer__AError__message;
179 val* modelbuilder__ModelBuilder__load_module_ast(val* self, val* p0);
180 extern const int COLOR_modelbuilder__ModelBuilder__identify_file;
181 extern const int COLOR_modelbuilder__ModulePath__mmodule;
182 extern const int COLOR_modelbuilder__ModelBuilder__load_module_ast;
183 extern const int COLOR_modelbuilder__ModulePath__mgroup;
184 extern const int COLOR_modelbuilder__ModulePath__name;
185 extern const int COLOR_modelbuilder__ModelBuilder__build_a_mmodule;
186 extern const int COLOR_modelbuilder__ModulePath__mmodule_61d;
187 extern const int COLOR_modelbuilder__ModelBuilder__build_module_importation;
188 val* modelbuilder__ModelBuilder__load_module(val* self, val* p0);
189 val* NEW_mmodule__MModule(const struct type* type);
190 extern const struct type type_mmodule__MModule;
191 extern const int COLOR_parser_nodes__ANode__location;
192 extern const int COLOR_mmodule__MModule__init;
193 extern const int COLOR_modelbuilder__AModule__mmodule_61d;
194 extern const int COLOR_modelbuilder__ModelBuilder__nmodules;
195 extern const struct type type_array__Arraymmodule__MModule;
196 extern const int COLOR_model_base__Object__intrude_visibility;
197 extern const int COLOR_mmodule__MModule__set_visibility_for;
198 extern const int COLOR_mmodule__MModule__set_imported_mmodules;
199 val* modelbuilder__ModelBuilder__load_rt_module(val* self, val* p0, val* p1, val* p2);
200 extern const int COLOR_parser_nodes__AModule__n_moduledecl;
201 extern const int COLOR_parser_nodes__AModuledecl__n_name;
202 extern const int COLOR_parser_nodes__AModuleName__n_id;
203 extern const int COLOR_parser_nodes__Token__text;
204 val* modelbuilder__ModelBuilder__build_a_mmodule(val* self, val* p0, val* p1, val* p2);
205 extern const int COLOR_modelbuilder__AModule__is_importation_done;
206 extern const int COLOR_modelbuilder__AModule__is_importation_done_61d;
207 extern const int COLOR_parser_nodes__AModule__n_imports;
208 extern const struct type type_parser_nodes__AStdImport;
209 extern const int COLOR_parser_nodes__AStdImport__n_name;
210 extern const int COLOR_modelbuilder__ModelBuilder__get_mmodule_by_name;
211 extern const int COLOR_modelbuilder__AStdImport__mmodule_61d;
212 extern const int COLOR_parser_nodes__AStdImport__n_visibility;
213 extern const int COLOR_modelbuilder__AVisibility__mvisibility;
214 extern const int COLOR_model_base__Object__protected_visibility;
215 extern const int COLOR_kernel__Object___61d_61d;
216 extern const int COLOR_poset__POSetElement___60d;
217 extern const int COLOR_model_base__Object__public_visibility;
218 void modelbuilder__ModelBuilder__build_module_importation(val* self, val* p0);
219 extern const int COLOR_modelbuilder__ModelBuilder___64dnmodules;
220 val* modelbuilder__ModelBuilder__nmodules(val* self);
221 void modelbuilder__ModelBuilder__nmodules_61d(val* self, val* p0);
222 extern const int COLOR_modelbuilder__ModelBuilder___64dmmodule2nmodule;
223 val* modelbuilder__ModelBuilder__mmodule2nmodule(val* self);
224 void modelbuilder__ModelBuilder__mmodule2nmodule_61d(val* self, val* p0);
225 extern const int COLOR_parser_nodes__ANode__hot_location;
226 void modelbuilder__ModelBuilder__error(val* self, val* p0, val* p1);
227 extern const int COLOR_toolcontext__ToolContext__warning;
228 void modelbuilder__ModelBuilder__warning(val* self, val* p0, val* p1);
229 extern const int COLOR_model__MModule__try_get_primitive_method;
230 extern const int COLOR_toolcontext__ToolContext__fatal_error;
231 val* modelbuilder__ModelBuilder__force_get_primitive_method(val* self, val* p0, val* p1, val* p2, val* p3);
232 extern const int COLOR_modelbuilder__ModulePath___64dname;
233 val* modelbuilder__ModulePath__name(val* self);
234 void modelbuilder__ModulePath__name_61d(val* self, val* p0);
235 extern const int COLOR_modelbuilder__ModulePath___64dfilepath;
236 val* modelbuilder__ModulePath__filepath(val* self);
237 void modelbuilder__ModulePath__filepath_61d(val* self, val* p0);
238 extern const int COLOR_modelbuilder__ModulePath___64dmgroup;
239 val* modelbuilder__ModulePath__mgroup(val* self);
240 void modelbuilder__ModulePath__mgroup_61d(val* self, val* p0);
241 extern const int COLOR_modelbuilder__ModulePath___64dmmodule;
242 val* modelbuilder__ModulePath__mmodule(val* self);
243 void modelbuilder__ModulePath__mmodule_61d(val* self, val* p0);
244 extern const int COLOR_modelbuilder__ModulePath__filepath;
245 val* modelbuilder__ModulePath__to_s(val* self);
246 void modelbuilder__ModulePath__init(val* self, val* p0, val* p1, val* p2);
247 extern const int COLOR_modelbuilder__AStdImport___64dmmodule;
248 val* modelbuilder__AStdImport__mmodule(val* self);
249 void modelbuilder__AStdImport__mmodule_61d(val* self, val* p0);
250 extern const int COLOR_modelbuilder__AModule___64dmmodule;
251 val* modelbuilder__AModule__mmodule(val* self);
252 void modelbuilder__AModule__mmodule_61d(val* self, val* p0);
253 extern const int COLOR_modelbuilder__AModule___64dis_importation_done;
254 short int modelbuilder__AModule__is_importation_done(val* self);
255 void modelbuilder__AModule__is_importation_done_61d(val* self, short int p0);
256 val* modelbuilder__AVisibility__mvisibility(val* self);
257 val* modelbuilder__AIntrudeVisibility__mvisibility(val* self);
258 val* modelbuilder__APublicVisibility__mvisibility(val* self);
259 val* modelbuilder__AProtectedVisibility__mvisibility(val* self);
260 extern const int COLOR_model_base__Object__private_visibility;
261 val* modelbuilder__APrivateVisibility__mvisibility(val* self);