1 #include "nit.common.h"
2 #define COLOR_nit__scope__ToolContext___scope_phase 34
3 extern const char FILE_nit__scope
[];
4 #define COLOR_nit__phase__Phase___toolcontext 0
5 extern const char FILE_nit__phase
[];
6 void nit__scope___APropdef___do_scope(val
* self
, val
* p0
);
7 #define COLOR_nit__scope__Variable___name 0
8 #define COLOR_nit__scope__Variable___location 1
9 #define COLOR_nit__scope__Variable___warn_unread 2
10 #define COLOR_nit___nit__Variable___standard__kernel__Object__init 40
11 #define COLOR_nit__scope__EscapeMark___name 0
12 #define COLOR_nit__scope__EscapeMark___continue_mark 1
13 #define COLOR_nit__scope__EscapeMark___escapes 2
14 #define COLOR_nit___nit__EscapeMark___standard__kernel__Object__init 37
15 #define COLOR_nit__scope__ScopeVisitor___toolcontext 1
16 #define COLOR_nit__scope__ScopeVisitor___selfvariable 2
17 #define COLOR_nit__scope___nit__scope__ScopeVisitor___standard__kernel__Object__init 47
18 #define COLOR_nit__scope__ScopeVisitor___scopes 3
19 val
* NEW_nit__scope__Scope(const struct type
* type
);
20 extern const struct type type_nit__scope__Scope
;
21 void standard___standard__Sequence___SimpleCollection__add(val
* self
, val
* p0
);
22 short int standard___standard__List___standard__abstract_collection__Collection__is_empty(val
* self
);
23 val
* standard___standard__List___standard__abstract_collection__Sequence__shift(val
* self
);
24 #define COLOR_nit__scope__Scope___variables 0
25 #define COLOR_standard__hash_collection__HashMap___values 8
26 extern const char FILE_standard__hash_collection
[];
27 #define COLOR_standard__abstract_collection__Collection__iterator 37
28 #define COLOR_standard__abstract_collection__Iterator__is_ok 34
29 #define COLOR_standard__abstract_collection__Iterator__item 32
30 val
* standard___standard__NativeString___to_s_with_length(char* self
, long p0
);
31 val
* NEW_standard__Array(const struct type
* type
);
32 extern const struct type type_standard__Array__standard__Object
;
33 val
* NEW_standard__NativeArray(int length
, const struct type
* type
);
34 extern const struct type type_standard__NativeArray__standard__Object
;
35 #define COLOR_standard__array__Array__with_native 73
36 #define COLOR_standard__string__Object__to_s 9
37 void nit___nit__ToolContext___advice(val
* self
, val
* p0
, val
* p1
, val
* p2
);
38 #define COLOR_standard__abstract_collection__Iterator__next 33
39 val
* nit__scope___nit__scope__ScopeVisitor___search_variable(val
* self
, val
* p0
);
40 #define COLOR_standard__kernel__Object___61d_61d 2
41 void nit__scope___nit__scope__ScopeVisitor___error(val
* self
, val
* p0
, val
* p1
);
42 val
* standard___standard__List___standard__abstract_collection__Collection__first(val
* self
);
43 void standard___standard__HashMap___standard__abstract_collection__Map___91d_93d_61d(val
* self
, val
* p0
, val
* p1
);
44 #define COLOR_nit__parser_nodes__ANode___location 0
45 extern const char FILE_nit__parser_nodes
[];
46 val
* standard___standard__List___standard__abstract_collection__Collection__iterator(val
* self
);
47 short int standard___standard__ListIterator___standard__abstract_collection__Iterator__is_ok(val
* self
);
48 val
* standard___standard__ListIterator___standard__abstract_collection__Iterator__item(val
* self
);
49 val
* nit__scope___nit__scope__Scope___get_variable(val
* self
, val
* p0
);
50 void standard___standard__ListIterator___standard__abstract_collection__Iterator__next(val
* self
);
51 #define COLOR_nit__scope__ANode__accept_scope_visitor 42
52 #define COLOR_nit__scope__Scope___escapemark 1
53 void standard___standard__List___standard__abstract_collection__Sequence__unshift(val
* self
, val
* p0
);
54 void nit___nit__Visitor___enter_visit(val
* self
, val
* p0
);
55 void nit__scope___nit__scope__ScopeVisitor___shift_scope(val
* self
);
56 #define COLOR_nit__parser_nodes__ALabel___n_id 5
57 val
* nit__scope___nit__scope__ScopeVisitor___search_label(val
* self
, val
* p0
);
58 val
* nit__lexer_work___Token___text(val
* self
);
59 val
* NEW_nit__EscapeMark(const struct type
* type
);
60 extern const struct type type_nit__EscapeMark
;
61 #define COLOR_nit__scope__EscapeMark__name_61d 33
62 #define COLOR_standard__kernel__Object__init 7
63 #define COLOR_nit__parser_nodes__ANode__hot_location 34
64 void nit___nit__ToolContext___error(val
* self
, val
* p0
, val
* p1
);
65 short int standard___standard__MapRead___has_key(val
* self
, val
* p0
);
66 val
* standard___standard__HashMap___standard__abstract_collection__MapRead___91d_93d(val
* self
, val
* p0
);
67 #define COLOR_nit__parser_nodes__ANode__visit_all 40
68 val
* NEW_nit__scope__ScopeVisitor(const struct type
* type
);
69 extern const struct type type_nit__scope__ScopeVisitor
;
70 #define COLOR_nit__scope__ScopeVisitor__toolcontext_61d 36
71 #define COLOR_nit__scope__AParam___variable 7
72 #define COLOR_nit__scope___AParam___ANode__accept_scope_visitor 66
73 #define COLOR_nit__parser_nodes__AParam___n_id 4
74 val
* NEW_nit__Variable(const struct type
* type
);
75 extern const struct type type_nit__Variable
;
76 #define COLOR_nit__scope__Variable__name_61d 33
77 short int nit__scope___nit__scope__ScopeVisitor___register_variable(val
* self
, val
* p0
, val
* p1
);
78 #define COLOR_nit__scope__AVardeclExpr___variable 15
79 #define COLOR_nit__scope___AVardeclExpr___ANode__accept_scope_visitor 90
80 #define COLOR_nit__parser_nodes__AVardeclExpr___n_id 11
81 #define COLOR_nit__scope__ASelfExpr___variable 11
82 #define COLOR_nit__scope___ASelfExpr___ANode__accept_scope_visitor 84
83 #define COLOR_nit__scope__AEscapeExpr___escapemark 12
84 #define COLOR_nit__scope___AContinueExpr___ANode__accept_scope_visitor 88
85 #define COLOR_nit__parser_nodes__ALabelable___n_label 10
86 val
* nit__scope___nit__scope__ScopeVisitor___get_escapemark(val
* self
, val
* p0
, val
* p1
);
87 void standard___standard__Array___standard__abstract_collection__SimpleCollection__add(val
* self
, val
* p0
);
88 #define COLOR_nit__scope___ABreakExpr___ANode__accept_scope_visitor 89
89 #define COLOR_nit__scope__ADoExpr___break_mark 13
90 val
* nit__scope___nit__scope__ScopeVisitor___make_escape_mark(val
* self
, val
* p0
, short int p1
);
91 #define COLOR_nit__parser_nodes__ADoExpr___n_block 12
92 void nit__scope___nit__scope__ScopeVisitor___enter_visit_block(val
* self
, val
* p0
, val
* p1
);
93 #define COLOR_nit__parser_nodes__AIfExpr___n_expr 11
94 #define COLOR_nit__parser_nodes__AIfExpr___n_then 12
95 #define COLOR_nit__parser_nodes__AIfExpr___n_else 13
96 #define COLOR_nit__scope__AWhileExpr___break_mark 15
97 #define COLOR_nit__scope__AWhileExpr___continue_mark 16
98 #define COLOR_nit__parser_nodes__AWhileExpr___n_expr 12
99 #define COLOR_nit__parser_nodes__AWhileExpr___n_block 14
100 #define COLOR_nit__scope__ALoopExpr___break_mark 13
101 #define COLOR_nit__scope__ALoopExpr___continue_mark 14
102 #define COLOR_nit__parser_nodes__ALoopExpr___n_block 12
103 #define COLOR_nit__scope__AForExpr___variables 16
104 #define COLOR_nit__scope__AForExpr___break_mark 17
105 #define COLOR_nit__scope__AForExpr___continue_mark 18
106 #define COLOR_nit__parser_nodes__AForExpr___n_expr 13
107 extern const struct type type_standard__Array__nit__Variable
;
108 void standard___standard__Array___standard__kernel__Object__init(val
* self
);
109 #define COLOR_nit__parser_nodes__AForExpr___n_ids 12
110 val
* nit___nit__ANodes___standard__abstract_collection__Collection__iterator(val
* self
);
111 #define COLOR_nit__parser_nodes__AForExpr___n_block 15
112 #define COLOR_nit__scope__AVarFormExpr___variable 11
113 #define COLOR_nit__parser_nodes__ASendExpr___n_expr 10
114 extern const struct type type_nit__AImplicitSelfExpr
;
115 #define COLOR_nit__parser_nodes__ACallFormExpr___n_id 16
116 #define COLOR_nit__parser_nodes__ACallFormExpr___n_args 17
117 #define COLOR_nit__parser_nodes__AExprs___n_exprs 4
118 short int nit___nit__ANodes___standard__abstract_collection__Collection__is_empty(val
* self
);
119 extern const struct type type_nit__AParExprs
;
120 #define COLOR_nit__scope__ACallFormExpr__variable_create 100
121 void nit___nit__Prod___ANode__replace_with(val
* self
, val
* p0
);
122 void nit__scope___ANode___accept_scope_visitor(val
* self
, val
* p0
);
123 #define COLOR_nit__scope___ACallFormExpr___ANode__accept_scope_visitor 101
124 val
* NEW_nit__AVarExpr(const struct type
* type
);
125 extern const struct type type_nit__AVarExpr
;
126 void nit__parser_prod___AVarExpr___init_avarexpr(val
* self
, val
* p0
);
127 val
* NEW_nit__AVarAssignExpr(const struct type
* type
);
128 extern const struct type type_nit__AVarAssignExpr
;
129 #define COLOR_nit__parser_nodes__AAssignFormExpr___n_assign 12
130 #define COLOR_nit__parser_nodes__AAssignFormExpr___n_value 13
131 void nit__parser_prod___AVarAssignExpr___init_avarassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
);
132 val
* NEW_nit__AVarReassignExpr(const struct type
* type
);
133 extern const struct type type_nit__AVarReassignExpr
;
134 #define COLOR_nit__parser_nodes__AReassignFormExpr___n_assign_op 12
135 #define COLOR_nit__parser_nodes__AReassignFormExpr___n_value 13
136 void nit__parser_prod___AVarReassignExpr___init_avarreassignexpr(val
* self
, val
* p0
, val
* p1
, val
* p2
);