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 extern const int COLOR_abstract_collection__SimpleCollection__add
;
40 void scope__ScopeVisitor__init(val
* self
, val
* p0
);
41 extern const int COLOR_scope__ScopeVisitor___64dscopes
;
42 val
* scope__ScopeVisitor__scopes(val
* self
);
43 void scope__ScopeVisitor__scopes_61d(val
* self
, val
* p0
);
44 extern const int COLOR_scope__ScopeVisitor__search_variable
;
45 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
46 val
* NEW_array__Array(const struct type
* type
);
47 extern const struct type type_array__Arraykernel__Object
;
48 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
49 extern const struct type type_array__NativeArraykernel__Object
;
50 extern const int COLOR_array__Array__with_native
;
51 extern const int COLOR_string__Object__to_s
;
52 extern const int COLOR_scope__ScopeVisitor__error
;
53 extern const int COLOR_abstract_collection__Collection__first
;
54 extern const int COLOR_scope__Scope__variables
;
55 extern const int COLOR_abstract_collection__Map___91d_93d_61d
;
56 short int scope__ScopeVisitor__register_variable(val
* self
, val
* p0
, val
* p1
);
57 extern const int COLOR_abstract_collection__Collection__iterator
;
58 extern const int COLOR_abstract_collection__Iterator__is_ok
;
59 extern const int COLOR_abstract_collection__Iterator__item
;
60 extern const int COLOR_scope__Scope__get_variable
;
61 extern const int COLOR_abstract_collection__Iterator__next
;
62 val
* scope__ScopeVisitor__search_variable(val
* self
, val
* p0
);
63 extern const int COLOR_scope__ANode__accept_scope_visitor
;
64 void scope__ScopeVisitor__visit(val
* self
, val
* p0
);
65 extern const int COLOR_scope__Scope__escapemark_61d
;
66 extern const int COLOR_abstract_collection__Sequence__unshift
;
67 extern const int COLOR_parser_nodes__Visitor__enter_visit
;
68 extern const int COLOR_abstract_collection__Sequence__shift
;
69 void scope__ScopeVisitor__enter_visit_block(val
* self
, val
* p0
, val
* p1
);
70 extern const int COLOR_scope__Scope__escapemark
;
71 extern const int COLOR_scope__EscapeMark__name
;
72 extern const int COLOR_kernel__Object___61d_61d
;
73 val
* scope__ScopeVisitor__search_label(val
* self
, val
* p0
);
74 extern const int COLOR_parser_nodes__ALabel__n_id
;
75 extern const int COLOR_parser_nodes__Token__text
;
76 extern const int COLOR_scope__ScopeVisitor__search_label
;
77 val
* NEW_scope__EscapeMark(const struct type
* type
);
78 extern const struct type type_scope__EscapeMark
;
79 extern const int COLOR_scope__EscapeMark__init
;
80 val
* scope__ScopeVisitor__make_escape_mark(val
* self
, val
* p0
, short int p1
);
81 val
* scope__ScopeVisitor__get_escapemark(val
* self
, val
* p0
, val
* p1
);
82 extern const int COLOR_scope__ScopeVisitor__toolcontext
;
83 extern const int COLOR_parser_nodes__ANode__hot_location
;
84 extern const int COLOR_toolcontext__ToolContext__error
;
85 void scope__ScopeVisitor__error(val
* self
, val
* p0
, val
* p1
);
86 extern const int COLOR_scope__Scope___64dvariables
;
87 val
* scope__Scope__variables(val
* self
);
88 void scope__Scope__variables_61d(val
* self
, val
* p0
);
89 extern const int COLOR_scope__Scope___64descapemark
;
90 val
* scope__Scope__escapemark(val
* self
);
91 void scope__Scope__escapemark_61d(val
* self
, val
* p0
);
92 extern const int COLOR_abstract_collection__MapRead__has_key
;
93 extern const int COLOR_abstract_collection__MapRead___91d_93d
;
94 val
* scope__Scope__get_variable(val
* self
, val
* p0
);
95 void scope__Scope__init(val
* self
);
96 extern const int COLOR_parser_nodes__ANode__visit_all
;
97 void scope__ANode__accept_scope_visitor(val
* self
, val
* p0
);
98 val
* NEW_scope__ScopeVisitor(const struct type
* type
);
99 extern const struct type type_scope__ScopeVisitor
;
100 extern const int COLOR_scope__ScopeVisitor__init
;
101 void scope__APropdef__do_scope(val
* self
, val
* p0
);
102 extern const int COLOR_scope__AParam___64dvariable
;
103 val
* scope__AParam__variable(val
* self
);
104 void scope__AParam__variable_61d(val
* self
, val
* p0
);
105 extern const int COLOR_scope__AParam__accept_scope_visitor
;
106 extern const int COLOR_parser_nodes__AParam__n_id
;
107 val
* NEW_scope__Variable(const struct type
* type
);
108 extern const struct type type_scope__Variable
;
109 extern const int COLOR_scope__Variable__init
;
110 extern const int COLOR_scope__ScopeVisitor__register_variable
;
111 extern const int COLOR_scope__AParam__variable_61d
;
112 void scope__AParam__accept_scope_visitor(val
* self
, val
* p0
);
113 extern const int COLOR_scope__AVardeclExpr___64dvariable
;
114 val
* scope__AVardeclExpr__variable(val
* self
);
115 void scope__AVardeclExpr__variable_61d(val
* self
, val
* p0
);
116 extern const int COLOR_scope__AVardeclExpr__accept_scope_visitor
;
117 extern const int COLOR_parser_nodes__AVardeclExpr__n_id
;
118 extern const int COLOR_scope__AVardeclExpr__variable_61d
;
119 void scope__AVardeclExpr__accept_scope_visitor(val
* self
, val
* p0
);
120 extern const int COLOR_scope__ASelfExpr___64dvariable
;
121 val
* scope__ASelfExpr__variable(val
* self
);
122 void scope__ASelfExpr__variable_61d(val
* self
, val
* p0
);
123 extern const int COLOR_scope__ASelfExpr__accept_scope_visitor
;
124 extern const int COLOR_scope__ScopeVisitor__selfvariable
;
125 extern const int COLOR_scope__ASelfExpr__variable_61d
;
126 void scope__ASelfExpr__accept_scope_visitor(val
* self
, val
* p0
);
127 extern const int COLOR_scope__AContinueExpr___64descapemark
;
128 val
* scope__AContinueExpr__escapemark(val
* self
);
129 void scope__AContinueExpr__escapemark_61d(val
* self
, val
* p0
);
130 extern const int COLOR_scope__AContinueExpr__accept_scope_visitor
;
131 extern const int COLOR_parser_nodes__ALabelable__n_label
;
132 extern const int COLOR_scope__ScopeVisitor__get_escapemark
;
133 extern const int COLOR_scope__EscapeMark__for_loop
;
134 extern const int COLOR_scope__EscapeMark__continues
;
135 extern const int COLOR_scope__AContinueExpr__escapemark_61d
;
136 void scope__AContinueExpr__accept_scope_visitor(val
* self
, val
* p0
);
137 extern const int COLOR_scope__ABreakExpr___64descapemark
;
138 val
* scope__ABreakExpr__escapemark(val
* self
);
139 void scope__ABreakExpr__escapemark_61d(val
* self
, val
* p0
);
140 extern const int COLOR_scope__ABreakExpr__accept_scope_visitor
;
141 extern const int COLOR_scope__EscapeMark__breaks
;
142 extern const int COLOR_scope__ABreakExpr__escapemark_61d
;
143 void scope__ABreakExpr__accept_scope_visitor(val
* self
, val
* p0
);
144 extern const int COLOR_scope__ADoExpr___64descapemark
;
145 val
* scope__ADoExpr__escapemark(val
* self
);
146 void scope__ADoExpr__escapemark_61d(val
* self
, val
* p0
);
147 extern const int COLOR_scope__ScopeVisitor__make_escape_mark
;
148 extern const int COLOR_scope__ADoExpr__escapemark_61d
;
149 extern const int COLOR_parser_nodes__ADoExpr__n_block
;
150 extern const int COLOR_scope__ADoExpr__escapemark
;
151 extern const int COLOR_scope__ScopeVisitor__enter_visit_block
;
152 void scope__ADoExpr__accept_scope_visitor(val
* self
, val
* p0
);
153 extern const int COLOR_parser_nodes__AIfExpr__n_expr
;
154 extern const int COLOR_parser_nodes__AIfExpr__n_then
;
155 extern const int COLOR_parser_nodes__AIfExpr__n_else
;
156 void scope__AIfExpr__accept_scope_visitor(val
* self
, val
* p0
);
157 extern const int COLOR_scope__AWhileExpr___64descapemark
;
158 val
* scope__AWhileExpr__escapemark(val
* self
);
159 void scope__AWhileExpr__escapemark_61d(val
* self
, val
* p0
);
160 extern const int COLOR_scope__AWhileExpr__escapemark_61d
;
161 extern const int COLOR_parser_nodes__AWhileExpr__n_expr
;
162 extern const int COLOR_parser_nodes__AWhileExpr__n_block
;
163 void scope__AWhileExpr__accept_scope_visitor(val
* self
, val
* p0
);
164 extern const int COLOR_scope__ALoopExpr___64descapemark
;
165 val
* scope__ALoopExpr__escapemark(val
* self
);
166 void scope__ALoopExpr__escapemark_61d(val
* self
, val
* p0
);
167 extern const int COLOR_scope__ALoopExpr__escapemark_61d
;
168 extern const int COLOR_parser_nodes__ALoopExpr__n_block
;
169 void scope__ALoopExpr__accept_scope_visitor(val
* self
, val
* p0
);
170 extern const int COLOR_scope__AForExpr___64dvariables
;
171 val
* scope__AForExpr__variables(val
* self
);
172 void scope__AForExpr__variables_61d(val
* self
, val
* p0
);
173 extern const int COLOR_scope__AForExpr___64descapemark
;
174 val
* scope__AForExpr__escapemark(val
* self
);
175 void scope__AForExpr__escapemark_61d(val
* self
, val
* p0
);
176 extern const int COLOR_parser_nodes__AForExpr__n_expr
;
177 extern const struct type type_array__Arrayscope__Variable
;
178 extern const int COLOR_array__Array__init
;
179 extern const int COLOR_scope__AForExpr__variables_61d
;
180 extern const int COLOR_parser_nodes__AForExpr__n_ids
;
181 extern const int COLOR_scope__AForExpr__escapemark_61d
;
182 extern const int COLOR_parser_nodes__AForExpr__n_block
;
183 void scope__AForExpr__accept_scope_visitor(val
* self
, val
* p0
);
184 extern const int COLOR_scope__AVarFormExpr___64dvariable
;
185 val
* scope__AVarFormExpr__variable(val
* self
);
186 void scope__AVarFormExpr__variable_61d(val
* self
, val
* p0
);
187 extern const int COLOR_parser_nodes__ASendExpr__n_expr
;
188 extern const struct type type_parser_nodes__AImplicitSelfExpr
;
189 extern const int COLOR_parser_nodes__ACallFormExpr__n_id
;
190 extern const int COLOR_parser_nodes__ACallFormExpr__n_args
;
191 extern const int COLOR_parser_nodes__AExprs__n_exprs
;
192 extern const int COLOR_abstract_collection__Collection__is_empty
;
193 extern const struct type type_parser_nodes__AParExprs
;
194 extern const int COLOR_scope__ACallFormExpr__variable_create
;
195 extern const int COLOR_scope__AVarFormExpr__variable_61d
;
196 extern const int COLOR_parser_nodes__ANode__replace_with
;
197 extern const int COLOR_scope__ACallFormExpr__accept_scope_visitor
;
198 void scope__ACallFormExpr__accept_scope_visitor(val
* self
, val
* p0
);
199 val
* scope__ACallFormExpr__variable_create(val
* self
, val
* p0
);
200 val
* NEW_parser_nodes__AVarExpr(const struct type
* type
);
201 extern const struct type type_parser_nodes__AVarExpr
;
202 extern const int COLOR_parser_prod__AVarExpr__init_avarexpr
;
203 val
* scope__ACallExpr__variable_create(val
* self
, val
* p0
);
204 val
* NEW_parser_nodes__AVarAssignExpr(const struct type
* type
);
205 extern const struct type type_parser_nodes__AVarAssignExpr
;
206 extern const int COLOR_parser_nodes__AAssignFormExpr__n_assign
;
207 extern const int COLOR_parser_nodes__AAssignFormExpr__n_value
;
208 extern const int COLOR_parser_prod__AVarAssignExpr__init_avarassignexpr
;
209 val
* scope__ACallAssignExpr__variable_create(val
* self
, val
* p0
);
210 val
* NEW_parser_nodes__AVarReassignExpr(const struct type
* type
);
211 extern const struct type type_parser_nodes__AVarReassignExpr
;
212 extern const int COLOR_parser_nodes__AReassignFormExpr__n_assign_op
;
213 extern const int COLOR_parser_nodes__AReassignFormExpr__n_value
;
214 extern const int COLOR_parser_prod__AVarReassignExpr__init_avarreassignexpr
;
215 val
* scope__ACallReassignExpr__variable_create(val
* self
, val
* p0
);