Mercurial > octave-libgccjit
comparison src/pt-assign.cc @ 8913:35cd375d4bb3
make tree::dup functions const
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 05 Mar 2009 13:50:25 -0500 |
parents | 24dd61b36591 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8912:57c3155754d6 | 8913:35cd375d4bb3 |
---|---|
267 return octave_value::assign_op_as_string (etype); | 267 return octave_value::assign_op_as_string (etype); |
268 } | 268 } |
269 | 269 |
270 tree_expression * | 270 tree_expression * |
271 tree_simple_assignment::dup (symbol_table::scope_id scope, | 271 tree_simple_assignment::dup (symbol_table::scope_id scope, |
272 symbol_table::context_id context) | 272 symbol_table::context_id context) const |
273 { | 273 { |
274 tree_simple_assignment *new_sa | 274 tree_simple_assignment *new_sa |
275 = new tree_simple_assignment (lhs ? lhs->dup (scope, context) : 0, | 275 = new tree_simple_assignment (lhs ? lhs->dup (scope, context) : 0, |
276 rhs ? rhs->dup (scope, context) : 0, | 276 rhs ? rhs->dup (scope, context) : 0, |
277 preserve, etype); | 277 preserve, etype); |
477 return octave_value::assign_op_as_string (etype); | 477 return octave_value::assign_op_as_string (etype); |
478 } | 478 } |
479 | 479 |
480 tree_expression * | 480 tree_expression * |
481 tree_multi_assignment::dup (symbol_table::scope_id scope, | 481 tree_multi_assignment::dup (symbol_table::scope_id scope, |
482 symbol_table::context_id context) | 482 symbol_table::context_id context) const |
483 { | 483 { |
484 tree_multi_assignment *new_ma | 484 tree_multi_assignment *new_ma |
485 = new tree_multi_assignment (lhs ? lhs->dup (scope, context) : 0, | 485 = new tree_multi_assignment (lhs ? lhs->dup (scope, context) : 0, |
486 rhs ? rhs->dup (scope, context) : 0, | 486 rhs ? rhs->dup (scope, context) : 0, |
487 preserve, etype); | 487 preserve, etype); |