219
219
void vala_ccode_function_set_is_declaration (ValaCCodeFunction* self, gboolean value);
220
220
void vala_ccode_file_add_function (ValaCCodeFile* self, ValaCCodeFunction* func);
221
221
ValaList* vala_ccode_file_get_symbols (ValaCCodeFile* self);
222
static void vala_ccode_file_get_symbols_from_fragment (ValaCCodeFile* self, ValaList* symbols, ValaCCodeFragment* fragment);
222
223
ValaList* vala_ccode_fragment_get_children (ValaCCodeFragment* self);
223
224
const gchar* vala_ccode_function_get_name (ValaCCodeFunction* self);
224
225
static gchar* vala_ccode_file_get_define_for_filename (const gchar* filename);
364
360
g_return_val_if_fail (self != NULL, NULL);
365
361
_tmp0_ = vala_array_list_new (G_TYPE_STRING, (GBoxedCopyFunc) g_strdup, g_free, g_direct_equal);
366
362
symbols = _tmp0_;
363
vala_ccode_file_get_symbols_from_fragment (self, (ValaList*) symbols, self->priv->type_member_declaration);
364
result = (ValaList*) symbols;
369
static gpointer _vala_ccode_node_ref0 (gpointer self) {
370
return self ? vala_ccode_node_ref (self) : NULL;
374
static void vala_ccode_file_get_symbols_from_fragment (ValaCCodeFile* self, ValaList* symbols, ValaCCodeFragment* fragment) {
375
g_return_if_fail (self != NULL);
376
g_return_if_fail (symbols != NULL);
377
g_return_if_fail (fragment != NULL);
368
ValaList* _tmp1_ = NULL;
379
ValaList* _tmp0_ = NULL;
369
380
ValaList* _node_list;
372
383
gint _node_index;
373
_tmp1_ = vala_ccode_fragment_get_children (self->priv->type_member_declaration);
375
_tmp2_ = vala_collection_get_size ((ValaCollection*) _node_list);
384
_tmp0_ = vala_ccode_fragment_get_children (fragment);
386
_tmp1_ = vala_collection_get_size ((ValaCollection*) _node_list);
377
388
_node_index = -1;
379
gpointer _tmp3_ = NULL;
390
gpointer _tmp2_ = NULL;
380
391
ValaCCodeNode* node;
381
ValaCCodeNode* _tmp4_;
382
ValaCCodeFunction* _tmp5_;
383
ValaCCodeFunction* func;
384
392
_node_index = _node_index + 1;
385
393
if (!(_node_index < _node_size)) {
388
_tmp3_ = vala_list_get (_node_list, _node_index);
389
node = (ValaCCodeNode*) _tmp3_;
390
_tmp5_ = _vala_ccode_node_ref0 ((_tmp4_ = node, VALA_IS_CCODE_FUNCTION (_tmp4_) ? ((ValaCCodeFunction*) _tmp4_) : NULL));
393
const gchar* _tmp6_ = NULL;
394
_tmp6_ = vala_ccode_function_get_name (func);
395
vala_collection_add ((ValaCollection*) symbols, _tmp6_);
396
_tmp2_ = vala_list_get (_node_list, _node_index);
397
node = (ValaCCodeNode*) _tmp2_;
398
if (VALA_IS_CCODE_FRAGMENT (node)) {
399
vala_ccode_file_get_symbols_from_fragment (self, symbols, VALA_CCODE_FRAGMENT (node));
401
ValaCCodeNode* _tmp3_;
402
ValaCCodeFunction* _tmp4_;
403
ValaCCodeFunction* func;
404
_tmp4_ = _vala_ccode_node_ref0 ((_tmp3_ = node, VALA_IS_CCODE_FUNCTION (_tmp3_) ? ((ValaCCodeFunction*) _tmp3_) : NULL));
407
const gchar* _tmp5_ = NULL;
408
_tmp5_ = vala_ccode_function_get_name (func);
409
vala_collection_add ((ValaCollection*) symbols, _tmp5_);
411
_vala_ccode_node_unref0 (func);
397
_vala_ccode_node_unref0 (func);
398
413
_vala_ccode_node_unref0 (node);
400
415
_vala_iterable_unref0 (_node_list);
402
result = (ValaList*) symbols;
407
static gunichar string_get_char (const gchar* self, gint index) {
420
static gunichar string_get_char (const gchar* self, glong index) {
408
421
gunichar result = 0U;
410
423
g_return_val_if_fail (self != NULL, 0U);