Mercurial > octave-libgccjit
comparison src/pt-cmd.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 | 73c4516fae10 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8912:57c3155754d6 | 8913:35cd375d4bb3 |
---|---|
30 | 30 |
31 // No-op. | 31 // No-op. |
32 | 32 |
33 tree_command * | 33 tree_command * |
34 tree_no_op_command::dup (symbol_table::scope_id, | 34 tree_no_op_command::dup (symbol_table::scope_id, |
35 symbol_table::context_id /*context*/) | 35 symbol_table::context_id) const |
36 { | 36 { |
37 return new tree_no_op_command (orig_cmd, line (), column ()); | 37 return new tree_no_op_command (orig_cmd, line (), column ()); |
38 } | 38 } |
39 | 39 |
40 void | 40 void |
45 | 45 |
46 // Function definition. | 46 // Function definition. |
47 | 47 |
48 tree_command * | 48 tree_command * |
49 tree_function_def::dup (symbol_table::scope_id, | 49 tree_function_def::dup (symbol_table::scope_id, |
50 symbol_table::context_id /*context*/) | 50 symbol_table::context_id) const |
51 { | 51 { |
52 return new tree_function_def (fcn, line (), column ()); | 52 return new tree_function_def (fcn, line (), column ()); |
53 } | 53 } |
54 | 54 |
55 void | 55 void |