comparison src/pt-select.h @ 7767:71f068b22fcc

scope and context fixes for function handles
author John W. Eaton <jwe@octave.org>
date Wed, 07 May 2008 13:45:30 -0400
parents 745a8299c2b5
children 3100283874d7
comparison
equal deleted inserted replaced
7766:fc81e027c53c 7767:71f068b22fcc
62 62
63 tree_statement_list *commands (void) { return list; } 63 tree_statement_list *commands (void) { return list; }
64 64
65 octave_comment_list *leading_comment (void) { return lead_comm; } 65 octave_comment_list *leading_comment (void) { return lead_comm; }
66 66
67 tree_if_clause *dup (symbol_table::scope_id scope); 67 tree_if_clause *dup (symbol_table::scope_id scope,
68 symbol_table::context_id context);
68 69
69 void accept (tree_walker& tw); 70 void accept (tree_walker& tw);
70 71
71 private: 72 private:
72 73
105 } 106 }
106 } 107 }
107 108
108 void eval (void); 109 void eval (void);
109 110
110 tree_if_command_list *dup (symbol_table::scope_id scope); 111 tree_if_command_list *dup (symbol_table::scope_id scope,
112 symbol_table::context_id context);
111 113
112 void accept (tree_walker& tw); 114 void accept (tree_walker& tw);
113 115
114 private: 116 private:
115 117
140 142
141 octave_comment_list *leading_comment (void) { return lead_comm; } 143 octave_comment_list *leading_comment (void) { return lead_comm; }
142 144
143 octave_comment_list *trailing_comment (void) { return trail_comm; } 145 octave_comment_list *trailing_comment (void) { return trail_comm; }
144 146
145 tree_command *dup (symbol_table::scope_id scope); 147 tree_command *dup (symbol_table::scope_id scope,
148 symbol_table::context_id context);
146 149
147 void accept (tree_walker& tw); 150 void accept (tree_walker& tw);
148 151
149 private: 152 private:
150 153
195 198
196 tree_statement_list *commands (void) { return list; } 199 tree_statement_list *commands (void) { return list; }
197 200
198 octave_comment_list *leading_comment (void) { return lead_comm; } 201 octave_comment_list *leading_comment (void) { return lead_comm; }
199 202
200 tree_switch_case *dup (symbol_table::scope_id scope); 203 tree_switch_case *dup (symbol_table::scope_id scope,
204 symbol_table::context_id context);
201 205
202 void accept (tree_walker& tw); 206 void accept (tree_walker& tw);
203 207
204 private: 208 private:
205 209
238 } 242 }
239 } 243 }
240 244
241 void eval (const octave_value& val); 245 void eval (const octave_value& val);
242 246
243 tree_switch_case_list *dup (symbol_table::scope_id scope); 247 tree_switch_case_list *dup (symbol_table::scope_id scope,
248 symbol_table::context_id context);
244 249
245 void accept (tree_walker& tw); 250 void accept (tree_walker& tw);
246 251
247 private: 252 private:
248 253
280 285
281 octave_comment_list *leading_comment (void) { return lead_comm; } 286 octave_comment_list *leading_comment (void) { return lead_comm; }
282 287
283 octave_comment_list *trailing_comment (void) { return trail_comm; } 288 octave_comment_list *trailing_comment (void) { return trail_comm; }
284 289
285 tree_command *dup (symbol_table::scope_id scope); 290 tree_command *dup (symbol_table::scope_id scope,
291 symbol_table::context_id context);
286 292
287 void accept (tree_walker& tw); 293 void accept (tree_walker& tw);
288 294
289 private: 295 private:
290 296