1 #include "nit.common.h"
2 #define COLOR_modelbuilder__ToolContext___opt_path 27
3 #define COLOR_modelbuilder__ToolContext___opt_only_metamodel 28
4 #define COLOR_modelbuilder__ToolContext___opt_only_parse 29
5 #define COLOR_modelbuilder__ToolContext___opt_ignore_visibility 30
6 #define COLOR_modelbuilder__ToolContext__init 127
7 #define COLOR_toolcontext__ToolContext___option_context 5
8 val
* NEW_array__Array(const struct type
* type
);
9 extern const struct type type_array__Arrayopts__Option
;
10 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
11 extern const struct type type_array__NativeArrayopts__Option
;
12 #define COLOR_array__Array__with_native 65
13 void opts__OptionContext__add_option(val
* self
, val
* p0
);
14 void modelbuilder__ToolContext__init(val
* self
);
15 #define COLOR_modelbuilder__ToolContext___modelbuilder_real 31
16 val
* modelbuilder__ToolContext__modelbuilder(val
* self
);
17 short int array__AbstractArrayRead__is_empty(val
* self
);
18 long array__AbstractArrayRead__length(val
* self
);
19 val
* abstract_collection__SequenceRead__first(val
* self
);
20 val
* NEW_mmodule__MModule(const struct type
* type
);
21 extern const struct type type_mmodule__MModule
;
22 #define COLOR_modelbuilder__ModelBuilder___model 0
23 #define COLOR_mmodule__MModule___name 4
24 val
* NEW_location__Location(const struct type
* type
);
25 extern const struct type type_location__Location
;
26 #define COLOR_mmodule__MModule___location 5
27 #define COLOR_location__Location___file 0
28 void location__Location__init(val
* self
, val
* p0
, long p1
, long p2
, long p3
, long p4
);
29 void mmodule__MModule__init(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
30 #define COLOR_mmodule__MModule___is_fictive 11
31 void mmodule__MModule__set_imported_mmodules(val
* self
, val
* p0
);
32 val
* phase__ToolContext__phases_list(val
* self
);
33 #define COLOR_abstract_collection__Collection__iterator 29
34 #define COLOR_abstract_collection__Iterator__is_ok 31
35 #define COLOR_abstract_collection__Iterator__item 29
36 #define COLOR_phase__Phase___disabled 2
37 #define COLOR_modelbuilder__Phase__process_mainmodule 40
38 #define COLOR_abstract_collection__Iterator__next 30
39 void modelbuilder__ToolContext__run_global_phases(val
* self
, val
* p0
);
40 #define COLOR_modelbuilder__ModelBuilder___toolcontext 1
41 #define COLOR_mmodule__Model___mmodules 2
42 val
* array__Collection__to_a(val
* self
);
43 #define COLOR_mmodule__Model___mmodule_importation_hierarchy 4
44 void sorter__Comparator__sort(val
* self
, val
* p0
);
45 extern const struct type type_array__Arrayparser_nodes__AModule
;
46 void array__Array__init(val
* self
);
47 val
* array__AbstractArrayRead__iterator(val
* self
);
48 short int array__ArrayIterator__is_ok(val
* self
);
49 val
* array__ArrayIterator__item(val
* self
);
50 #define COLOR_modelbuilder__ModelBuilder___mmodule2nmodule 7
51 val
* hash_collection__HashMap___91d_93d(val
* self
, val
* p0
);
52 void array__Array__add(val
* self
, val
* p0
);
53 void array__ArrayIterator__next(val
* self
);
54 void phase__ToolContext__run_phases(val
* self
, val
* p0
);
55 #define COLOR_opts__Option___value 6
56 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
57 void toolcontext__ToolContext__info(val
* self
, val
* p0
, long p1
);
58 void modelbuilder__ModelBuilder__run_phases(val
* self
);
59 #define COLOR_modelbuilder__ModelBuilder___paths 3
60 void abstract_collection__Sequence__append(val
* self
, val
* p0
);
61 val
* environ__String__environ(val
* self
);
62 short int string__Text__is_empty(val
* self
);
63 val
* BOX_kernel__Char(char);
64 val
* string_search__Text__split_with(val
* self
, val
* p0
);
65 #define COLOR_toolcontext__ToolContext___nit_dir 20
66 #define COLOR_kernel__Object___61d_61d 2
67 extern const struct type type_array__Arraykernel__Object
;
68 extern const struct type type_array__NativeArraykernel__Object
;
69 #define COLOR_string__Object__to_s 7
70 short int file__String__file_exists(val
* self
);
71 void modelbuilder__ModelBuilder__init(val
* self
, val
* p0
, val
* p1
);
73 val
* NEW_array__ArraySet(const struct type
* type
);
74 extern const struct type type_array__ArraySetmmodule__MModule
;
75 void array__ArraySet__init(val
* self
);
76 val
* modelbuilder__ModelBuilder__load_module(val
* self
, val
* p0
);
77 #define COLOR_modelbuilder__AModule___mmodule 8
78 void array__ArraySet__add(val
* self
, val
* p0
);
79 extern const struct type type_kernel__Int
;
80 val
* BOX_kernel__Int(long);
81 void toolcontext__ToolContext__check_errors(val
* self
);
82 val
* modelbuilder__ModelBuilder__parse(val
* self
, val
* p0
);
83 val
* model__Model__get_mclasses_by_name(val
* self
, val
* p0
);
84 short int abstract_collection__SequenceRead___61d_61d(val
* self
, val
* p0
);
85 #define COLOR_mmodule__MModule___in_importation 7
86 #define COLOR_model__MClass___intro_mmodule 1
87 short int poset__POSetElement___60d_61d(val
* self
, val
* p0
);
88 #define COLOR_model__MClass___visibility 5
89 short int mmodule__MModule__is_visible(val
* self
, val
* p0
, val
* p1
);
90 val
* model__MClass__full_name(val
* self
);
91 void modelbuilder__ModelBuilder__error(val
* self
, val
* p0
, val
* p1
);
92 val
* modelbuilder__ModelBuilder__try_get_mclass_by_name(val
* self
, val
* p0
, val
* p1
, val
* p2
);
93 val
* model__Model__get_mproperties_by_name(val
* self
, val
* p0
);
94 #define COLOR_modelbuilder__ModelBuilder___try_get_mproperty_by_name2_cache 2
95 val
* more_collections__HashMap3___91d_93d(val
* self
, val
* p0
, val
* p1
, val
* p2
);
96 short int model__MType__has_mproperty(val
* self
, val
* p0
, val
* p1
);
97 #define COLOR_model__MProperty___intro_mclassdef 1
98 #define COLOR_model__MClassDef___mmodule 1
99 #define COLOR_model__MProperty___visibility 3
100 extern const struct type type_model__MMethod
;
101 #define COLOR_model__MMethod___is_init 9
102 #define COLOR_model__MClassDef___bound_mtype 3
103 short int model__MType__is_subtype(val
* self
, val
* p0
, val
* p1
, val
* p2
);
104 extern const struct type type_array__Arraymodel__MProperty
;
105 extern const struct type type_array__Arraystring__String
;
106 val
* model__MProperty__full_name(val
* self
);
107 val
* string__Collection__join(val
* self
, val
* p0
);
108 void more_collections__HashMap3___91d_93d_61d(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
109 val
* modelbuilder__ModelBuilder__try_get_mproperty_by_name2(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
110 val
* modelbuilder__ModelBuilder__try_get_mproperty_by_name(val
* self
, val
* p0
, val
* p1
, val
* p2
);
111 #define COLOR_mproject__MGroup___filepath 5
112 short int string__FlatString___61d_61d(val
* self
, val
* p0
);
113 short int string__Text__has_suffix(val
* self
, val
* p0
);
114 val
* string__FlatString___43d(val
* self
, val
* p0
);
115 val
* file__String__simplify_path(val
* self
);
116 val
* modelbuilder__ModelBuilder__identify_file(val
* self
, val
* p0
);
117 #define COLOR_mproject__MGroup___parent 3
118 #define COLOR_mproject__MGroup___mproject 2
119 #define COLOR_mproject__MProject___root 3
120 val
* file__String__join_path(val
* self
, val
* p0
);
121 short int array__AbstractArrayRead__has(val
* self
, val
* p0
);
122 #define COLOR_parser_nodes__ANode__hot_location 30
123 val
* modelbuilder__ModelBuilder__search_module_in_paths(val
* self
, val
* p0
, val
* p1
, val
* p2
);
124 #define COLOR_mproject__MGroup___name 1
125 val
* modelbuilder__ModelBuilder__search_mmodule_by_name(val
* self
, val
* p0
, val
* p1
, val
* p2
);
126 #define COLOR_modelbuilder__ModulePath___filepath 1
127 val
* modelbuilder__ModelBuilder__get_mmodule_by_name(val
* self
, val
* p0
, val
* p1
, val
* p2
);
128 val
* modelbuilder__ModelBuilder__module_absolute_path(val
* self
, val
* p0
);
129 void toolcontext__ToolContext__error(val
* self
, val
* p0
, val
* p1
);
130 #define COLOR_modelbuilder__ModelBuilder___identified_files 4
131 val
* file__String__file_extension(val
* self
);
132 val
* modelbuilder__ModelBuilder__get_mgroup(val
* self
, val
* p0
);
133 val
* file__String__basename(val
* self
, val
* p0
);
134 short int abstract_collection__MapRead__has_key(val
* self
, val
* p0
);
135 val
* NEW_mproject__MProject(const struct type
* type
);
136 extern const struct type type_mproject__MProject
;
137 void mproject__MProject__init(val
* self
, val
* p0
, val
* p1
);
138 val
* NEW_mproject__MGroup(const struct type
* type
);
139 extern const struct type type_mproject__MGroup
;
140 void mproject__MGroup__init(val
* self
, val
* p0
, val
* p1
, val
* p2
);
141 val
* NEW_modelbuilder__ModulePath(const struct type
* type
);
142 extern const struct type type_modelbuilder__ModulePath
;
143 #define COLOR_modelbuilder__ModulePath___name 0
144 #define COLOR_modelbuilder__ModulePath___mgroup 2
145 #define COLOR_modelbuilder__MGroup___module_paths 7
146 void hash_collection__HashMap___91d_93d_61d(val
* self
, val
* p0
, val
* p1
);
147 #define COLOR_modelbuilder__ModelBuilder___mgroups 5
148 val
* file__String__dirname(val
* self
);
149 val
* mproject__MGroup__full_name(val
* self
);
150 val
* NEW_mdoc__MDoc(const struct type
* type
);
151 extern const struct type type_mdoc__MDoc
;
152 val
* NEW_file__IFStream(const struct type
* type
);
153 extern const struct type type_file__IFStream
;
154 void file__IFStream__open(val
* self
, val
* p0
);
155 short int stream__BufferedIStream__eof(val
* self
);
156 #define COLOR_mdoc__MDoc___content 0
157 val
* stream__IStream__read_line(val
* self
);
158 #define COLOR_mdoc__MEntity___mdoc 0
159 #define COLOR_mdoc__MDoc___original_mentity 1
160 val
* file__Object__getcwd(val
* self
);
161 val
* NEW_lexer_work__Lexer(const struct type
* type
);
162 extern const struct type type_lexer_work__Lexer
;
163 val
* NEW_location__SourceFile(const struct type
* type
);
164 extern const struct type type_location__SourceFile
;
165 void location__SourceFile__init(val
* self
, val
* p0
, val
* p1
);
166 void lexer_work__Lexer__init(val
* self
, val
* p0
);
167 val
* NEW_parser_work__Parser(const struct type
* type
);
168 extern const struct type type_parser_work__Parser
;
169 void parser_work__Parser__init(val
* self
, val
* p0
);
170 val
* parser_work__Parser__parse(val
* self
);
171 void file__IFStream__close(val
* self
);
172 val
* parser_nodes__Start__n_base(val
* self
);
173 val
* parser_nodes__Start__n_eof(val
* self
);
174 extern const struct type type_parser_nodes__AError
;
175 #define COLOR_lexer_work__AError___message 5
176 val
* modelbuilder__ModelBuilder__load_module_ast(val
* self
, val
* p0
);
177 #define COLOR_modelbuilder__ModulePath___mmodule 3
178 val
* modelbuilder__ModelBuilder__build_a_mmodule(val
* self
, val
* p0
, val
* p1
, val
* p2
);
179 void modelbuilder__ModelBuilder__build_module_importation(val
* self
, val
* p0
);
180 val
* parser_nodes__AModule__n_moduledecl(val
* self
);
181 val
* parser_nodes__AModuledecl__n_name(val
* self
);
182 val
* parser_nodes__AModuleName__n_id(val
* self
);
183 val
* lexer_work__Token__text(val
* self
);
184 val
* parser_nodes__ANode__location(val
* self
);
185 #define COLOR_modelbuilder__ModelBuilder___nmodules 6
186 val
* parser_nodes__AModuledecl__n_doc(val
* self
);
187 val
* modelbuilder__ADoc__to_mdoc(val
* self
);
188 #define COLOR_modelbuilder__AModule___is_importation_done 9
189 extern const struct type type_array__Arraymmodule__MModule
;
190 #define COLOR_parser_nodes__AModule___n_imports 5
191 val
* parser_nodes__ANodes__iterator(val
* self
);
192 extern const struct type type_parser_nodes__AStdImport
;
193 #define COLOR_mmodule__MModule___mgroup 3
194 val
* parser_nodes__AStdImport__n_name(val
* self
);
195 val
* parser_nodes__AModuleName__n_quad(val
* self
);
196 #define COLOR_parser_nodes__AModuleName___n_path 5
197 #define COLOR_modelbuilder__AStdImport___mmodule 7
198 val
* parser_nodes__AStdImport__n_visibility(val
* self
);
199 #define COLOR_modelbuilder__AVisibility__mvisibility 53
200 val
* model_base__Object__protected_visibility(val
* self
);
201 short int poset__POSetElement___60d(val
* self
, val
* p0
);
202 void mmodule__MModule__set_visibility_for(val
* self
, val
* p0
, val
* p1
);
203 val
* model_base__Object__public_visibility(val
* self
);
204 void toolcontext__ToolContext__warning(val
* self
, val
* p0
, val
* p1
);
205 void modelbuilder__ModelBuilder__warning(val
* self
, val
* p0
, val
* p1
);
206 val
* model__MModule__try_get_primitive_method(val
* self
, val
* p0
, val
* p1
);
207 void toolcontext__ToolContext__fatal_error(val
* self
, val
* p0
, val
* p1
);
208 val
* modelbuilder__ModelBuilder__force_get_primitive_method(val
* self
, val
* p0
, val
* p1
, val
* p2
, val
* p3
);
209 val
* modelbuilder__ModulePath__to_s(val
* self
);
210 val
* model_base__Object__intrude_visibility(val
* self
);
211 val
* modelbuilder__AIntrudeVisibility__mvisibility(val
* self
);
212 val
* modelbuilder__APublicVisibility__mvisibility(val
* self
);
213 val
* modelbuilder__AProtectedVisibility__mvisibility(val
* self
);
214 val
* model_base__Object__private_visibility(val
* self
);
215 val
* modelbuilder__APrivateVisibility__mvisibility(val
* self
);
216 #define COLOR_modelbuilder__ADoc___mdoc_cache 5
217 #define COLOR_parser_nodes__ADoc___n_comment 4
218 #define COLOR_string__FlatText___length 3
219 #define COLOR_string__FlatString___chars 6
220 #define COLOR_abstract_collection__SequenceRead___91d_93d 39
221 extern const struct class class_kernel__Char
;
222 val
* string__Text__substring_from(val
* self
, long p0
);
223 #define COLOR_abstract_collection__SequenceRead__last 40
224 val
* string__FlatString__substring(val
* self
, long p0
, long p1
);