blob: 8a1ebd9ad07828842423b676e75d69b5e131d20d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
|
/* valacodegenerator.vala
*
* Copyright (C) 2007-2008 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* Author:
* Jürg Billeter <j@bitron.ch>
*/
using GLib;
/**
* Abstract code visitor generating code.
*/
public class Vala.CodeGenerator : CodeVisitor {
/**
* Generate and emit C code for the specified code context.
*
* @param context a code context
*/
public virtual void emit (CodeContext! context) {
}
public virtual CodeBinding create_namespace_binding (Namespace! node) {
return null;
}
public virtual CodeBinding create_class_binding (Class! node) {
return null;
}
public virtual CodeBinding create_struct_binding (Struct! node) {
return null;
}
public virtual CodeBinding create_interface_binding (Interface! node) {
return null;
}
public virtual CodeBinding create_enum_binding (Enum! node) {
return null;
}
public virtual CodeBinding create_enum_value_binding (EnumValue! node) {
return null;
}
public virtual CodeBinding create_error_domain_binding (ErrorDomain node) {
return null;
}
public virtual CodeBinding create_error_code_binding (ErrorCode node) {
return null;
}
public virtual CodeBinding create_delegate_binding (Delegate! node) {
return null;
}
public virtual CodeBinding create_constant_binding (Constant! node) {
return null;
}
public virtual CodeBinding create_field_binding (Field! node) {
return null;
}
public virtual CodeBinding create_method_binding (Method! node) {
return null;
}
public virtual CodeBinding create_creation_method_binding (CreationMethod! node) {
return null;
}
public virtual CodeBinding create_formal_parameter_binding (FormalParameter! node) {
return null;
}
public virtual CodeBinding create_property_binding (Property! node) {
return null;
}
public virtual CodeBinding create_property_accessor_binding (PropertyAccessor! node) {
return null;
}
public virtual CodeBinding create_signal_binding (Signal! node) {
return null;
}
public virtual CodeBinding create_constructor_binding (Constructor! node) {
return null;
}
public virtual CodeBinding create_destructor_binding (Destructor! node) {
return null;
}
public virtual CodeBinding create_type_parameter_binding (TypeParameter! node) {
return null;
}
public virtual CodeBinding create_block_binding (Block! node) {
return null;
}
public virtual CodeBinding create_empty_statement_binding (EmptyStatement! node) {
return null;
}
public virtual CodeBinding create_declaration_statement_binding (DeclarationStatement! node) {
return null;
}
public virtual CodeBinding create_local_variable_declaration_binding (LocalVariableDeclaration! node) {
return null;
}
public virtual CodeBinding create_variable_declarator_binding (VariableDeclarator! node) {
return null;
}
public virtual CodeBinding create_initializer_list_binding (InitializerList! node) {
return null;
}
public virtual CodeBinding create_expression_statement_binding (ExpressionStatement! node) {
return null;
}
public virtual CodeBinding create_if_statement_binding (IfStatement! node) {
return null;
}
public virtual CodeBinding create_switch_statement_binding (SwitchStatement! node) {
return null;
}
public virtual CodeBinding create_switch_section_binding (SwitchSection! node) {
return null;
}
public virtual CodeBinding create_switch_label_binding (SwitchLabel! node) {
return null;
}
public virtual CodeBinding create_while_statement_binding (WhileStatement! node) {
return null;
}
public virtual CodeBinding create_do_statement_binding (DoStatement! node) {
return null;
}
public virtual CodeBinding create_for_statement_binding (ForStatement! node) {
return null;
}
public virtual CodeBinding create_foreach_statement_binding (ForeachStatement! node) {
return null;
}
public virtual CodeBinding create_break_statement_binding (BreakStatement! node) {
return null;
}
public virtual CodeBinding create_continue_statement_binding (ContinueStatement! node) {
return null;
}
public virtual CodeBinding create_return_statement_binding (ReturnStatement! node) {
return null;
}
public virtual CodeBinding create_throw_statement_binding (ThrowStatement! node) {
return null;
}
public virtual CodeBinding create_try_statement_binding (TryStatement! node) {
return null;
}
public virtual CodeBinding create_catch_clause_binding (CatchClause! node) {
return null;
}
public virtual CodeBinding create_lock_statement_binding (LockStatement! node) {
return null;
}
public virtual CodeBinding create_delete_statement_binding (DeleteStatement node) {
return null;
}
public virtual CodeBinding create_array_creation_expression_binding (ArrayCreationExpression! node) {
return null;
}
public virtual CodeBinding create_boolean_literal_binding (BooleanLiteral! node) {
return null;
}
public virtual CodeBinding create_character_literal_binding (CharacterLiteral! node) {
return null;
}
public virtual CodeBinding create_integer_literal_binding (IntegerLiteral! node) {
return null;
}
public virtual CodeBinding create_real_literal_binding (RealLiteral! node) {
return null;
}
public virtual CodeBinding create_string_literal_binding (StringLiteral! node) {
return null;
}
public virtual CodeBinding create_null_literal_binding (NullLiteral! node) {
return null;
}
public virtual CodeBinding create_parenthesized_expression_binding (ParenthesizedExpression! node) {
return null;
}
public virtual CodeBinding create_member_access_binding (MemberAccess! node) {
return null;
}
public virtual CodeBinding create_member_access_simple_binding (MemberAccess! node) {
return null;
}
public virtual CodeBinding create_invocation_expression_binding (InvocationExpression! node) {
return null;
}
public virtual CodeBinding create_element_access_binding (ElementAccess! node) {
return null;
}
public virtual CodeBinding create_base_access_binding (BaseAccess! node) {
return null;
}
public virtual CodeBinding create_postfix_expression_binding (PostfixExpression! node) {
return null;
}
public virtual CodeBinding create_object_creation_expression_binding (ObjectCreationExpression! node) {
return null;
}
public virtual CodeBinding create_sizeof_expression_binding (SizeofExpression! node) {
return null;
}
public virtual CodeBinding create_typeof_expression_binding (TypeofExpression! node) {
return null;
}
public virtual CodeBinding create_unary_expression_binding (UnaryExpression! node) {
return null;
}
public virtual CodeBinding create_cast_expression_binding (CastExpression! node) {
return null;
}
public virtual CodeBinding create_pointer_indirection_binding (PointerIndirection! node) {
return null;
}
public virtual CodeBinding create_addressof_expression_binding (AddressofExpression! node) {
return null;
}
public virtual CodeBinding create_reference_transfer_expression_binding (ReferenceTransferExpression! node) {
return null;
}
public virtual CodeBinding create_binary_expression_binding (BinaryExpression! node) {
return null;
}
public virtual CodeBinding create_type_check_binding (TypeCheck! node) {
return null;
}
public virtual CodeBinding create_conditional_expression_binding (ConditionalExpression! node) {
return null;
}
public virtual CodeBinding create_lambda_expression_binding (LambdaExpression! node) {
return null;
}
public virtual CodeBinding create_lambda_expression_with_statement_body_binding (LambdaExpression! node) {
return null;
}
public virtual CodeBinding create_assignment_binding (Assignment! node) {
return null;
}
}
|