~ubuntu-branches/ubuntu/wily/vala/wily

« back to all changes in this revision

Viewing changes to vala/valaforstatement.c

  • Committer: Bazaar Package Importer
  • Author(s): Robert Ancell
  • Date: 2011-03-17 09:35:15 UTC
  • mfrom: (1.5.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20110317093515-veyqriw9egujkws2
Tags: 0.11.7-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
1594
1594
        gboolean _tmp2_ = FALSE;
1595
1595
        g_return_val_if_fail (self != NULL, FALSE);
1596
1596
        g_return_val_if_fail (condition != NULL, FALSE);
1597
 
        _tmp1_ = _vala_code_node_ref0 ((_tmp0_ = condition, VALA_IS_BOOLEAN_LITERAL (_tmp0_) ? ((ValaBooleanLiteral*) _tmp0_) : NULL));
 
1597
        _tmp0_ = condition;
 
1598
        _tmp1_ = _vala_code_node_ref0 (VALA_IS_BOOLEAN_LITERAL (_tmp0_) ? ((ValaBooleanLiteral*) _tmp0_) : NULL);
1598
1599
        literal = _tmp1_;
1599
1600
        if (literal != NULL) {
1600
1601
                gboolean _tmp3_;
1617
1618
        gboolean _tmp2_ = FALSE;
1618
1619
        g_return_val_if_fail (self != NULL, FALSE);
1619
1620
        g_return_val_if_fail (condition != NULL, FALSE);
1620
 
        _tmp1_ = _vala_code_node_ref0 ((_tmp0_ = condition, VALA_IS_BOOLEAN_LITERAL (_tmp0_) ? ((ValaBooleanLiteral*) _tmp0_) : NULL));
 
1621
        _tmp0_ = condition;
 
1622
        _tmp1_ = _vala_code_node_ref0 (VALA_IS_BOOLEAN_LITERAL (_tmp0_) ? ((ValaBooleanLiteral*) _tmp0_) : NULL);
1621
1623
        literal = _tmp1_;
1622
1624
        if (literal != NULL) {
1623
1625
                gboolean _tmp3_;
1813
1815
        _tmp41_ = _tmp40_;
1814
1816
        _tmp42_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
1815
1817
        _tmp43_ = vala_local_variable_new (_tmp36_, _tmp38_, (ValaExpression*) _tmp41_, _tmp42_);
1816
 
        first_local = (_tmp44_ = _tmp43_, _vala_code_node_unref0 (_tmp41_), _g_free0 (_tmp38_), _vala_code_node_unref0 (_tmp36_), _tmp44_);
 
1818
        _tmp44_ = _tmp43_;
 
1819
        _vala_code_node_unref0 (_tmp41_);
 
1820
        _g_free0 (_tmp38_);
 
1821
        _vala_code_node_unref0 (_tmp36_);
 
1822
        first_local = _tmp44_;
1817
1823
        _tmp45_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
1818
1824
        _tmp46_ = vala_declaration_statement_new ((ValaSymbol*) first_local, _tmp45_);
1819
1825
        _tmp47_ = _tmp46_;
1863
1869
        _tmp62_ = _tmp61_;
1864
1870
        _tmp63_ = vala_code_node_get_source_reference ((ValaCodeNode*) self);
1865
1871
        _tmp64_ = vala_if_statement_new ((ValaExpression*) _tmp62_, iterator_block, NULL, _tmp63_);
1866
 
        first_if = (_tmp65_ = _tmp64_, _vala_code_node_unref0 (_tmp62_), _vala_code_node_unref0 (_tmp59_), _tmp65_);
 
1872
        _tmp65_ = _tmp64_;
 
1873
        _vala_code_node_unref0 (_tmp62_);
 
1874
        _vala_code_node_unref0 (_tmp59_);
 
1875
        first_if = _tmp65_;
1867
1876
        _tmp66_ = vala_for_statement_get_body (self);
1868
1877
        vala_block_insert_statement (_tmp66_, 0, (ValaStatement*) first_if);
1869
1878
        _tmp67_ = vala_for_statement_get_body (self);
1916
1925
 
1917
1926
void vala_for_statement_set_condition (ValaForStatement* self, ValaExpression* value) {
1918
1927
        ValaExpression* _tmp0_;
1919
 
        ValaExpression* _tmp1_;
1920
1928
        g_return_if_fail (self != NULL);
1921
1929
        _tmp0_ = _vala_code_node_ref0 (value);
1922
 
        _tmp1_ = _tmp0_;
1923
1930
        _vala_code_node_unref0 (self->priv->_condition);
1924
 
        self->priv->_condition = _tmp1_;
 
1931
        self->priv->_condition = _tmp0_;
1925
1932
        if (self->priv->_condition != NULL) {
1926
1933
                vala_code_node_set_parent_node ((ValaCodeNode*) self->priv->_condition, (ValaCodeNode*) self);
1927
1934
        }
1938
1945
 
1939
1946
void vala_for_statement_set_body (ValaForStatement* self, ValaBlock* value) {
1940
1947
        ValaBlock* _tmp0_;
1941
 
        ValaBlock* _tmp1_;
1942
1948
        g_return_if_fail (self != NULL);
1943
1949
        _tmp0_ = _vala_code_node_ref0 (value);
1944
 
        _tmp1_ = _tmp0_;
1945
1950
        _vala_code_node_unref0 (self->priv->_body);
1946
 
        self->priv->_body = _tmp1_;
 
1951
        self->priv->_body = _tmp0_;
1947
1952
        vala_code_node_set_parent_node ((ValaCodeNode*) self->priv->_body, (ValaCodeNode*) self);
1948
1953
}
1949
1954