1 #include "nit.common.h"
2 extern const int COLOR_scope__ToolContext___64dscope_phase
;
3 val
* scope__ToolContext__scope_phase(val
* self
);
4 void scope__ToolContext__scope_phase_61d(val
* self
, val
* p0
);
5 extern const int COLOR_phase__Phase__toolcontext
;
6 extern const int COLOR_scope__APropdef__do_scope
;
7 void scope__ScopePhase__process_npropdef(val
* self
, val
* p0
);
8 extern const int COLOR_scope__Variable___64dname
;
9 val
* scope__Variable__name(val
* self
);
10 void scope__Variable__name_61d(val
* self
, val
* p0
);
11 extern const int COLOR_scope__Variable__name
;
12 val
* scope__Variable__to_s(val
* self
);
13 void scope__Variable__init(val
* self
, val
* p0
);
14 extern const int COLOR_scope__EscapeMark___64dname
;
15 val
* scope__EscapeMark__name(val
* self
);
16 void scope__EscapeMark__name_61d(val
* self
, val
* p0
);
17 extern const int COLOR_scope__EscapeMark___64dfor_loop
;
18 short int scope__EscapeMark__for_loop(val
* self
);
19 void scope__EscapeMark__for_loop_61d(val
* self
, short int p0
);
20 extern const int COLOR_scope__EscapeMark___64dcontinues
;
21 val
* scope__EscapeMark__continues(val
* self
);
22 void scope__EscapeMark__continues_61d(val
* self
, val
* p0
);
23 extern const int COLOR_scope__EscapeMark___64dbreaks
;
24 val
* scope__EscapeMark__breaks(val
* self
);
25 void scope__EscapeMark__breaks_61d(val
* self
, val
* p0
);
26 void scope__EscapeMark__init(val
* self
, val
* p0
, short int p1
);
27 extern const int COLOR_scope__ScopeVisitor___64dtoolcontext
;
28 val
* scope__ScopeVisitor__toolcontext(val
* self
);
29 void scope__ScopeVisitor__toolcontext_61d(val
* self
, val
* p0
);
30 extern const int COLOR_scope__ScopeVisitor___64dselfvariable
;
31 val
* scope__ScopeVisitor__selfvariable(val
* self
);
32 void scope__ScopeVisitor__selfvariable_61d(val
* self
, val
* p0
);
33 extern const int COLOR_parser_nodes__Visitor__init
;
34 extern const int COLOR_scope__ScopeVisitor__toolcontext_61d
;
35 extern const int COLOR_scope__ScopeVisitor__scopes
;
36 val
* NEW_scope__Scope(const struct type
* type
);
37 extern const struct type type_scope__Scope
;
38 extern const int COLOR_scope__Scope__init
;
39 void CHECK_NEW_scope__Scope(val
*);
40 extern const int COLOR_abstract_collection__SimpleCollection__add
;
41 void scope__ScopeVisitor__init(val
* self
, val
* p0
);
42 extern const int COLOR_scope__ScopeVisitor___64dscopes
;
43 val
* scope__ScopeVisitor__scopes(val
* self
);
44 void scope__ScopeVisitor__scopes_61d(val
* self
, val
* p0
);
45 extern const int COLOR_scope__ScopeVisitor__search_variable
;
46 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
47 val
* NEW_array__Array(const struct type
* type
);
48 extern const struct type type_array__Arraykernel__Object
;
49 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
50 extern const struct type type_array__NativeArraykernel__Object
;
51 extern const int COLOR_array__Array__with_native
;
52 void CHECK_NEW_array__Array(val
*);
53 extern const int COLOR_string__Object__to_s
;
54 extern const int COLOR_scope__ScopeVisitor__error
;
55 extern const int COLOR_abstract_collection__Collection__first
;
56 extern const int COLOR_scope__Scope__variables
;
57 extern const int COLOR_abstract_collection__Map___91d_93d_61d
;
58 short int scope__ScopeVisitor__register_variable(val
* self
, val
* p0
, val
* p1
);
59 extern const int COLOR_abstract_collection__Collection__iterator
;
60 extern const int COLOR_abstract_collection__Iterator__is_ok
;
61 extern const int COLOR_abstract_collection__Iterator__item
;
62 extern const int COLOR_scope__Scope__get_variable
;
63 extern const int COLOR_abstract_collection__Iterator__next
;
64 val
* scope__ScopeVisitor__search_variable(val
* self
, val
* p0
);
65 extern const int COLOR_scope__ANode__accept_scope_visitor
;
66 void scope__ScopeVisitor__visit(val
* self
, val
* p0
);
67 extern const int COLOR_scope__Scope__escapemark_61d
;
68 extern const int COLOR_abstract_collection__Sequence__unshift
;
69 extern const int COLOR_parser_nodes__Visitor__enter_visit
;
70 extern const int COLOR_abstract_collection__Sequence__shift
;
71 void scope__ScopeVisitor__enter_visit_block(val
* self
, val
* p0
, val
* p1
);
72 extern const int COLOR_scope__Scope__escapemark
;
73 extern const int COLOR_scope__EscapeMark__name
;
74 extern const int COLOR_kernel__Object___61d_61d
;
75 val
* scope__ScopeVisitor__search_label(val
* self
, val
* p0
);
76 extern const int COLOR_parser_nodes__ALabel__n_id
;
77 extern const int COLOR_parser_nodes__Token__text
;
78 extern const int COLOR_scope__ScopeVisitor__search_label
;
79 val
* NEW_scope__EscapeMark(const struct type
* type
);
80 extern const struct type type_scope__EscapeMark
;
81 extern const int COLOR_scope__EscapeMark__init
;
82 void CHECK_NEW_scope__EscapeMark(val
*);
83 val
* scope__ScopeVisitor__make_escape_mark(val
* self
, val
* p0
, short int p1
);
84 val
* scope__ScopeVisitor__get_escapemark(val
* self
, val
* p0
, val
* p1
);
85 extern const int COLOR_scope__ScopeVisitor__toolcontext
;
86 extern const int COLOR_parser_nodes__ANode__hot_location
;
87 extern const int COLOR_toolcontext__ToolContext__error
;
88 void scope__ScopeVisitor__error(val
* self
, val
* p0
, val
* p1
);
89 extern const int COLOR_scope__Scope___64dvariables
;
90 val
* scope__Scope__variables(val
* self
);
91 void scope__Scope__variables_61d(val
* self
, val
* p0
);
92 extern const int COLOR_scope__Scope___64descapemark
;
93 val
* scope__Scope__escapemark(val
* self
);
94 void scope__Scope__escapemark_61d(val
* self
, val
* p0
);
95 extern const int COLOR_abstract_collection__MapRead__has_key
;
96 extern const int COLOR_abstract_collection__MapRead___91d_93d
;
97 val
* scope__Scope__get_variable(val
* self
, val
* p0
);
98 void scope__Scope__init(val
* self
);
99 extern const int COLOR_parser_nodes__ANode__visit_all
;
100 void scope__ANode__accept_scope_visitor(val
* self
, val
* p0
);
101 val
* NEW_scope__ScopeVisitor(const struct type
* type
);
102 extern const struct type type_scope__ScopeVisitor
;
103 extern const int COLOR_scope__ScopeVisitor__init
;
104 void CHECK_NEW_scope__ScopeVisitor(val
*);
105 void scope__APropdef__do_scope(val
* self
, val
* p0
);
106 extern const int COLOR_scope__AParam___64dvariable
;
107 val
* scope__AParam__variable(val
* self
);
108 void scope__AParam__variable_61d(val
* self
, val
* p0
);
109 extern const int COLOR_scope__AParam__accept_scope_visitor
;
110 extern const int COLOR_parser_nodes__AParam__n_id
;
111 val
* NEW_scope__Variable(const struct type
* type
);
112 extern const struct type type_scope__Variable
;
113 extern const int COLOR_scope__Variable__init
;
114 void CHECK_NEW_scope__Variable(val
*);
115 extern const int COLOR_scope__ScopeVisitor__register_variable
;
116 extern const int COLOR_scope__AParam__variable_61d
;
117 void scope__AParam__accept_scope_visitor(val
* self
, val
* p0
);
118 extern const int COLOR_scope__AVardeclExpr___64dvariable
;
119 val
* scope__AVardeclExpr__variable(val
* self
);
120 void scope__AVardeclExpr__variable_61d(val
* self
, val
* p0
);
121 extern const int COLOR_scope__AVardeclExpr__accept_scope_visitor
;
122 extern const int COLOR_parser_nodes__AVardeclExpr__n_id
;
123 extern const int COLOR_scope__AVardeclExpr__variable_61d
;
124 void scope__AVardeclExpr__accept_scope_visitor(val
* self
, val
* p0
);
125 extern const int COLOR_scope__ASelfExpr___64dvariable
;
126 val
* scope__ASelfExpr__variable(val
* self
);
127 void scope__ASelfExpr__variable_61d(val
* self
, val
* p0
);
128 extern const int COLOR_scope__ASelfExpr__accept_scope_visitor
;
129 extern const int COLOR_scope__ScopeVisitor__selfvariable
;
130 extern const int COLOR_scope__ASelfExpr__variable_61d
;
131 void scope__ASelfExpr__accept_scope_visitor(val
* self
, val
* p0
);
132 extern const int COLOR_scope__AContinueExpr___64descapemark
;
133 val
* scope__AContinueExpr__escapemark(val
* self
);
134 void scope__AContinueExpr__escapemark_61d(val
* self
, val
* p0
);
135 extern const int COLOR_scope__AContinueExpr__accept_scope_visitor
;
136 extern const int COLOR_parser_nodes__ALabelable__n_label
;
137 extern const int COLOR_scope__ScopeVisitor__get_escapemark
;
138 extern const int COLOR_scope__EscapeMark__for_loop
;
139 extern const int COLOR_scope__EscapeMark__continues
;
140 extern const int COLOR_scope__AContinueExpr__escapemark_61d
;
141 void scope__AContinueExpr__accept_scope_visitor(val
* self
, val
* p0
);
142 extern const int COLOR_scope__ABreakExpr___64descapemark
;
143 val
* scope__ABreakExpr__escapemark(val
* self
);
144 void scope__ABreakExpr__escapemark_61d(val
* self
, val
* p0
);
145 extern const int COLOR_scope__ABreakExpr__accept_scope_visitor
;
146 extern const int COLOR_scope__EscapeMark__breaks
;
147 extern const int COLOR_scope__ABreakExpr__escapemark_61d
;
148 void scope__ABreakExpr__accept_scope_visitor(val
* self
, val
* p0
);
149 extern const int COLOR_scope__ADoExpr___64descapemark
;
150 val
* scope__ADoExpr__escapemark(val
* self
);
151 void scope__ADoExpr__escapemark_61d(val
* self
, val
* p0
);
152 extern const int COLOR_scope__ScopeVisitor__make_escape_mark
;
153 extern const int COLOR_scope__ADoExpr__escapemark_61d
;
154 extern const int COLOR_parser_nodes__ADoExpr__n_block
;
155 extern const int COLOR_scope__ADoExpr__escapemark
;
156 extern const int COLOR_scope__ScopeVisitor__enter_visit_block
;
157 void scope__ADoExpr__accept_scope_visitor(val
* self
, val
* p0
);
158 extern const int COLOR_parser_nodes__AIfExpr__n_expr
;
159 extern const int COLOR_parser_nodes__AIfExpr__n_then
;
160 extern const int COLOR_parser_nodes__AIfExpr__n_else
;
161 void scope__AIfExpr__accept_scope_visitor(val
* self
, val
* p0
);
162 extern const int COLOR_scope__AWhileExpr___64descapemark
;
163 val
* scope__AWhileExpr__escapemark(val
* self
);
164 void scope__AWhileExpr__escapemark_61d(val
* self
, val
* p0
);
165 extern const int COLOR_scope__AWhileExpr__escapemark_61d
;
166 extern const int COLOR_parser_nodes__AWhileExpr__n_expr
;
167 extern const int COLOR_parser_nodes__AWhileExpr__n_block
;
168 void scope__AWhileExpr__accept_scope_visitor(val
* self
, val
* p0
);
169 extern const int COLOR_scope__ALoopExpr___64descapemark
;
170 val
* scope__ALoopExpr__escapemark(val
* self
);
171 void scope__ALoopExpr__escapemark_61d(val
* self
, val
* p0
);
172 extern const int COLOR_scope__ALoopExpr__escapemark_61d
;
173 extern const int COLOR_parser_nodes__ALoopExpr__n_block
;
174 void scope__ALoopExpr__accept_scope_visitor(val
* self
, val
* p0
);
175 extern const int COLOR_scope__AForExpr___64dvariables
;
176 val
* scope__AForExpr__variables(val
* self
);
177 void scope__AForExpr__variables_61d(val
* self
, val
* p0
);
178 extern const int COLOR_scope__AForExpr___64descapemark
;
179 val
* scope__AForExpr__escapemark(val
* self
);
180 void scope__AForExpr__escapemark_61d(val
* self
, val
* p0
);
181 extern const int COLOR_parser_nodes__AForExpr__n_expr
;
182 extern const struct type type_array__Arrayscope__Variable
;
183 extern const int COLOR_array__Array__init
;
184 extern const int COLOR_scope__AForExpr__variables_61d
;
185 extern const int COLOR_parser_nodes__AForExpr__n_ids
;
186 extern const int COLOR_scope__AForExpr__escapemark_61d
;
187 extern const int COLOR_parser_nodes__AForExpr__n_block
;
188 void scope__AForExpr__accept_scope_visitor(val
* self
, val
* p0
);
189 extern const int COLOR_scope__AVarFormExpr___64dvariable
;
190 val
* scope__AVarFormExpr__variable(val
* self
);
191 void scope__AVarFormExpr__variable_61d(val
* self
, val
* p0
);
192 extern const int COLOR_parser_nodes__ASendExpr__n_expr
;
193 extern const struct type type_parser_nodes__AImplicitSelfExpr
;
194 extern const int COLOR_parser_nodes__ACallFormExpr__n_id
;
195 extern const int COLOR_parser_nodes__ACallFormExpr__n_args
;
196 extern const int COLOR_parser_nodes__AExprs__n_exprs
;
197 extern const int COLOR_abstract_collection__Collection__is_empty
;
198 extern const struct type type_parser_nodes__AParExprs
;
199 extern const int COLOR_scope__ACallFormExpr__variable_create
;
200 extern const int COLOR_scope__AVarFormExpr__variable_61d
;
201 extern const int COLOR_parser_nodes__ANode__replace_with
;
202 extern const int COLOR_scope__ACallFormExpr__accept_scope_visitor
;
203 void scope__ACallFormExpr__accept_scope_visitor(val
* self
, val
* p0
);
204 val
* scope__ACallFormExpr__variable_create(val
* self
, val
* p0
);
205 val
* NEW_parser_nodes__AVarExpr(const struct type
* type
);
206 extern const struct type type_parser_nodes__AVarExpr
;
207 extern const int COLOR_parser_prod__AVarExpr__init_avarexpr
;
208 void CHECK_NEW_parser_nodes__AVarExpr(val
*);
209 val
* scope__ACallExpr__variable_create(val
* self
, val
* p0
);
210 val
* NEW_parser_nodes__AVarAssignExpr(const struct type
* type
);
211 extern const struct type type_parser_nodes__AVarAssignExpr
;
212 extern const int COLOR_parser_nodes__AAssignFormExpr__n_assign
;
213 extern const int COLOR_parser_nodes__AAssignFormExpr__n_value
;
214 extern const int COLOR_parser_prod__AVarAssignExpr__init_avarassignexpr
;
215 void CHECK_NEW_parser_nodes__AVarAssignExpr(val
*);
216 val
* scope__ACallAssignExpr__variable_create(val
* self
, val
* p0
);
217 val
* NEW_parser_nodes__AVarReassignExpr(const struct type
* type
);
218 extern const struct type type_parser_nodes__AVarReassignExpr
;
219 extern const int COLOR_parser_nodes__AReassignFormExpr__n_assign_op
;
220 extern const int COLOR_parser_nodes__AReassignFormExpr__n_value
;
221 extern const int COLOR_parser_prod__AVarReassignExpr__init_avarreassignexpr
;
222 void CHECK_NEW_parser_nodes__AVarReassignExpr(val
*);
223 val
* scope__ACallReassignExpr__variable_create(val
* self
, val
* p0
);