~ubuntu-branches/ubuntu/vivid/vala/vivid

« back to all changes in this revision

Viewing changes to vala/valaflowanalyzer.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-06-05 16:15:58 UTC
  • mfrom: (1.5.19 upstream)
  • Revision ID: james.westby@ubuntu.com-20110605161558-o3iwcgdgt8ogrnyg
Tags: 0.12.1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1467
1467
void vala_code_node_set_unreachable (ValaCodeNode* self, gboolean value);
1468
1468
ValaExpression* vala_variable_get_initializer (ValaVariable* self);
1469
1469
static void vala_flow_analyzer_handle_errors (ValaFlowAnalyzer* self, ValaCodeNode* node, gboolean always_fail);
 
1470
static void vala_flow_analyzer_real_visit_local_variable (ValaCodeVisitor* base, ValaLocalVariable* local);
 
1471
void vala_code_node_accept (ValaCodeNode* self, ValaCodeVisitor* visitor);
1470
1472
static void vala_flow_analyzer_real_visit_expression_statement (ValaCodeVisitor* base, ValaExpressionStatement* stmt);
1471
1473
ValaExpression* vala_expression_statement_get_expression (ValaExpressionStatement* self);
1472
1474
ValaExpression* vala_method_call_get_call (ValaMethodCall* self);
1479
1481
static void vala_flow_analyzer_real_visit_if_statement (ValaCodeVisitor* base, ValaIfStatement* stmt);
1480
1482
ValaExpression* vala_if_statement_get_condition (ValaIfStatement* self);
1481
1483
ValaBlock* vala_if_statement_get_true_statement (ValaIfStatement* self);
1482
 
void vala_code_node_accept (ValaCodeNode* self, ValaCodeVisitor* visitor);
1483
1484
ValaBlock* vala_if_statement_get_false_statement (ValaIfStatement* self);
1484
1485
static void vala_flow_analyzer_real_visit_switch_statement (ValaCodeVisitor* base, ValaSwitchStatement* stmt);
1485
1486
static ValaFlowAnalyzerJumpTarget* vala_flow_analyzer_jump_target_new_break_target (ValaBasicBlock* basic_block);
3242
3243
        gboolean _tmp13_ = FALSE;
3243
3244
        self = (ValaFlowAnalyzer*) base;
3244
3245
        g_return_if_fail (stmt != NULL);
 
3246
        vala_code_node_accept_children ((ValaCodeNode*) stmt, (ValaCodeVisitor*) self);
3245
3247
        _tmp0_ = vala_flow_analyzer_unreachable (self, (ValaCodeNode*) stmt);
3246
3248
        if (_tmp0_) {
3247
3249
                ValaSymbol* _tmp1_ = NULL;
3288
3290
}
3289
3291
 
3290
3292
 
 
3293
static void vala_flow_analyzer_real_visit_local_variable (ValaCodeVisitor* base, ValaLocalVariable* local) {
 
3294
        ValaFlowAnalyzer * self;
 
3295
        ValaExpression* _tmp0_ = NULL;
 
3296
        self = (ValaFlowAnalyzer*) base;
 
3297
        g_return_if_fail (local != NULL);
 
3298
        _tmp0_ = vala_variable_get_initializer ((ValaVariable*) local);
 
3299
        if (_tmp0_ != NULL) {
 
3300
                ValaExpression* _tmp1_ = NULL;
 
3301
                _tmp1_ = vala_variable_get_initializer ((ValaVariable*) local);
 
3302
                vala_code_node_accept ((ValaCodeNode*) _tmp1_, (ValaCodeVisitor*) self);
 
3303
        }
 
3304
}
 
3305
 
 
3306
 
3291
3307
static void vala_flow_analyzer_real_visit_expression_statement (ValaCodeVisitor* base, ValaExpressionStatement* stmt) {
3292
3308
        ValaFlowAnalyzer * self;
3293
3309
        gboolean _tmp0_;
5178
5194
        VALA_CODE_VISITOR_CLASS (klass)->visit_property_accessor = vala_flow_analyzer_real_visit_property_accessor;
5179
5195
        VALA_CODE_VISITOR_CLASS (klass)->visit_block = vala_flow_analyzer_real_visit_block;
5180
5196
        VALA_CODE_VISITOR_CLASS (klass)->visit_declaration_statement = vala_flow_analyzer_real_visit_declaration_statement;
 
5197
        VALA_CODE_VISITOR_CLASS (klass)->visit_local_variable = vala_flow_analyzer_real_visit_local_variable;
5181
5198
        VALA_CODE_VISITOR_CLASS (klass)->visit_expression_statement = vala_flow_analyzer_real_visit_expression_statement;
5182
5199
        VALA_CODE_VISITOR_CLASS (klass)->visit_if_statement = vala_flow_analyzer_real_visit_if_statement;
5183
5200
        VALA_CODE_VISITOR_CLASS (klass)->visit_switch_statement = vala_flow_analyzer_real_visit_switch_statement;