1 #include "nit.common.h"
2 #define COLOR_scope__ToolContext___scope_phase 24
3 #define COLOR_phase__Phase___toolcontext 0
4 void scope__APropdef__do_scope(val
* self
, val
* p0
);
5 void scope__ScopePhase__process_npropdef(val
* self
, val
* p0
);
6 #define COLOR_scope__Variable___name 0
7 val
* scope__Variable__to_s(val
* self
);
8 #define COLOR_scope__EscapeMark___name 0
9 #define COLOR_scope__EscapeMark___for_loop 1
10 #define COLOR_scope__EscapeMark___continues 2
11 #define COLOR_scope__EscapeMark___breaks 3
12 #define COLOR_scope__ScopeVisitor___toolcontext 1
13 #define COLOR_scope__ScopeVisitor___selfvariable 2
14 #define COLOR_scope__ScopeVisitor___scopes 3
15 val
* NEW_scope__Scope(const struct type
* type
);
16 extern const struct type type_scope__Scope
;
17 void abstract_collection__Sequence__add(val
* self
, val
* p0
);
18 void scope__ScopeVisitor__init(val
* self
, val
* p0
);
19 val
* scope__ScopeVisitor__search_variable(val
* self
, val
* p0
);
20 #define COLOR_kernel__Object___61d_61d 2
21 val
* string__NativeString__to_s_with_length(char* self
, long p0
);
22 val
* NEW_array__Array(const struct type
* type
);
23 extern const struct type type_array__Arraykernel__Object
;
24 val
* NEW_array__NativeArray(int length
, const struct type
* type
);
25 extern const struct type type_array__NativeArraykernel__Object
;
26 #define COLOR_array__Array__with_native 65
27 #define COLOR_string__Object__to_s 7
28 void scope__ScopeVisitor__error(val
* self
, val
* p0
, val
* p1
);
29 val
* list__List__first(val
* self
);
30 #define COLOR_scope__Scope___variables 0
31 void hash_collection__HashMap___91d_93d_61d(val
* self
, val
* p0
, val
* p1
);
32 short int scope__ScopeVisitor__register_variable(val
* self
, val
* p0
, val
* p1
);
33 val
* list__List__iterator(val
* self
);
34 short int list__ListIterator__is_ok(val
* self
);
35 val
* list__ListIterator__item(val
* self
);
36 val
* scope__Scope__get_variable(val
* self
, val
* p0
);
37 void list__ListIterator__next(val
* self
);
38 #define COLOR_scope__ANode__accept_scope_visitor 39
39 void scope__ScopeVisitor__visit(val
* self
, val
* p0
);
40 #define COLOR_scope__Scope___escapemark 1
41 void list__List__unshift(val
* self
, val
* p0
);
42 void parser_nodes__Visitor__enter_visit(val
* self
, val
* p0
);
43 val
* list__List__shift(val
* self
);
44 void scope__ScopeVisitor__enter_visit_block(val
* self
, val
* p0
, val
* p1
);
45 short int string__FlatString___61d_61d(val
* self
, val
* p0
);
46 val
* scope__ScopeVisitor__search_label(val
* self
, val
* p0
);
47 val
* parser_nodes__ALabel__n_id(val
* self
);
48 val
* lexer_work__Token__text(val
* self
);
49 val
* NEW_scope__EscapeMark(const struct type
* type
);
50 extern const struct type type_scope__EscapeMark
;
51 val
* scope__ScopeVisitor__make_escape_mark(val
* self
, val
* p0
, short int p1
);
52 val
* scope__ScopeVisitor__get_escapemark(val
* self
, val
* p0
, val
* p1
);
53 #define COLOR_parser_nodes__ANode__hot_location 30
54 void toolcontext__ToolContext__error(val
* self
, val
* p0
, val
* p1
);
55 short int abstract_collection__MapRead__has_key(val
* self
, val
* p0
);
56 val
* hash_collection__HashMap___91d_93d(val
* self
, val
* p0
);
57 #define COLOR_parser_nodes__ANode__visit_all 37
58 void scope__ANode__accept_scope_visitor(val
* self
, val
* p0
);
59 val
* NEW_scope__ScopeVisitor(const struct type
* type
);
60 extern const struct type type_scope__ScopeVisitor
;
61 #define COLOR_scope__AParam___variable 7
62 #define COLOR_scope__AParam__accept_scope_visitor 63
63 val
* parser_nodes__AParam__n_id(val
* self
);
64 val
* NEW_scope__Variable(const struct type
* type
);
65 extern const struct type type_scope__Variable
;
66 void scope__AParam__accept_scope_visitor(val
* self
, val
* p0
);
67 #define COLOR_scope__AVardeclExpr___variable 14
68 #define COLOR_scope__AVardeclExpr__accept_scope_visitor 82
69 val
* parser_nodes__AVardeclExpr__n_id(val
* self
);
70 void scope__AVardeclExpr__accept_scope_visitor(val
* self
, val
* p0
);
71 #define COLOR_scope__ASelfExpr___variable 10
72 #define COLOR_scope__ASelfExpr__accept_scope_visitor 75
73 void scope__ASelfExpr__accept_scope_visitor(val
* self
, val
* p0
);
74 #define COLOR_scope__AContinueExpr___escapemark 12
75 #define COLOR_scope__AContinueExpr__accept_scope_visitor 79
76 val
* parser_nodes__ALabelable__n_label(val
* self
);
77 void array__Array__add(val
* self
, val
* p0
);
78 void scope__AContinueExpr__accept_scope_visitor(val
* self
, val
* p0
);
79 #define COLOR_scope__ABreakExpr___escapemark 12
80 #define COLOR_scope__ABreakExpr__accept_scope_visitor 79
81 void scope__ABreakExpr__accept_scope_visitor(val
* self
, val
* p0
);
82 #define COLOR_scope__ADoExpr___escapemark 12
83 val
* parser_nodes__ADoExpr__n_block(val
* self
);
84 void scope__ADoExpr__accept_scope_visitor(val
* self
, val
* p0
);
85 val
* parser_nodes__AIfExpr__n_expr(val
* self
);
86 val
* parser_nodes__AIfExpr__n_then(val
* self
);
87 val
* parser_nodes__AIfExpr__n_else(val
* self
);
88 void scope__AIfExpr__accept_scope_visitor(val
* self
, val
* p0
);
89 #define COLOR_scope__AWhileExpr___escapemark 14
90 val
* parser_nodes__AWhileExpr__n_expr(val
* self
);
91 val
* parser_nodes__AWhileExpr__n_block(val
* self
);
92 void scope__AWhileExpr__accept_scope_visitor(val
* self
, val
* p0
);
93 #define COLOR_scope__ALoopExpr___escapemark 12
94 val
* parser_nodes__ALoopExpr__n_block(val
* self
);
95 void scope__ALoopExpr__accept_scope_visitor(val
* self
, val
* p0
);
96 #define COLOR_scope__AForExpr___variables 15
97 #define COLOR_scope__AForExpr___escapemark 16
98 val
* parser_nodes__AForExpr__n_expr(val
* self
);
99 extern const struct type type_array__Arrayscope__Variable
;
100 void array__Array__init(val
* self
);
101 #define COLOR_parser_nodes__AForExpr___n_ids 11
102 val
* parser_nodes__ANodes__iterator(val
* self
);
103 #define COLOR_abstract_collection__Iterator__is_ok 31
104 #define COLOR_abstract_collection__Iterator__item 29
105 #define COLOR_abstract_collection__Iterator__next 30
106 val
* parser_nodes__AForExpr__n_block(val
* self
);
107 void scope__AForExpr__accept_scope_visitor(val
* self
, val
* p0
);
108 #define COLOR_scope__AVarFormExpr___variable 10
109 val
* parser_nodes__ASendExpr__n_expr(val
* self
);
110 extern const struct type type_parser_nodes__AImplicitSelfExpr
;
111 val
* parser_nodes__ACallFormExpr__n_id(val
* self
);
112 val
* parser_nodes__ACallFormExpr__n_args(val
* self
);
113 #define COLOR_parser_nodes__AExprs___n_exprs 4
114 short int parser_nodes__ANodes__is_empty(val
* self
);
115 extern const struct type type_parser_nodes__AParExprs
;
116 #define COLOR_scope__ACallFormExpr__variable_create 92
117 void parser_nodes__Prod__replace_with(val
* self
, val
* p0
);
118 #define COLOR_scope__ACallFormExpr__accept_scope_visitor 93
119 void scope__ACallFormExpr__accept_scope_visitor(val
* self
, val
* p0
);
120 val
* NEW_parser_nodes__AVarExpr(const struct type
* type
);
121 extern const struct type type_parser_nodes__AVarExpr
;
122 void parser_prod__AVarExpr__init_avarexpr(val
* self
, val
* p0
);
123 val
* scope__ACallExpr__variable_create(val
* self
, val
* p0
);
124 val
* NEW_parser_nodes__AVarAssignExpr(const struct type
* type
);
125 extern const struct type type_parser_nodes__AVarAssignExpr
;
126 val
* parser_nodes__AAssignFormExpr__n_assign(val
* self
);
127 val
* parser_nodes__AAssignFormExpr__n_value(val
* self
);
128 void parser_prod__AVarAssignExpr__init_avarassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
);
129 val
* scope__ACallAssignExpr__variable_create(val
* self
, val
* p0
);
130 val
* NEW_parser_nodes__AVarReassignExpr(const struct type
* type
);
131 extern const struct type type_parser_nodes__AVarReassignExpr
;
132 val
* parser_nodes__AReassignFormExpr__n_assign_op(val
* self
);
133 val
* parser_nodes__AReassignFormExpr__n_value(val
* self
);
134 void parser_prod__AVarReassignExpr__init_avarreassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
);
135 val
* scope__ACallReassignExpr__variable_create(val
* self
, val
* p0
);