Mercurial > octave-nkf
diff src/pt-check.cc @ 5102:b04b30d30c66
[project @ 2004-12-28 01:59:05 by jwe]
author | jwe |
---|---|
date | Tue, 28 Dec 2004 01:59:05 +0000 |
parents | 12b6fbd57436 |
children | e35b034d3523 |
line wrap: on
line diff
--- a/src/pt-check.cc Fri Feb 01 21:16:56 2008 -0500 +++ b/src/pt-check.cc Tue Dec 28 01:59:05 2004 +0000 @@ -333,53 +333,6 @@ } void -tree_checker::visit_plot_command (tree_plot_command& cmd) -{ - plot_limits *range = cmd.limits (); - - if (range) - range->accept (*this); - - subplot_list *plot_list = cmd.subplots (); - - if (plot_list) - plot_list->accept (*this); -} - -void -tree_checker::visit_plot_limits (plot_limits& cmd) -{ - plot_range *x_range = cmd.x_limits (); - - if (x_range) - x_range->accept (*this); - - plot_range *y_range = cmd.y_limits (); - - if (y_range) - y_range->accept (*this); - - plot_range *z_range = cmd.z_limits (); - - if (z_range) - z_range->accept (*this); -} - -void -tree_checker::visit_plot_range (plot_range& cmd) -{ - tree_expression *lower = cmd.lower_bound (); - - if (lower) - lower->accept (*this); - - tree_expression *upper = cmd.upper_bound (); - - if (upper) - upper->accept (*this); -} - -void tree_checker::visit_postfix_expression (tree_postfix_expression& expr) { tree_expression *e = expr.operand (); @@ -462,87 +415,6 @@ } void -tree_checker::visit_subplot (subplot& cmd) -{ - tree_expression *sp_plot_data = cmd.plot_data (); - - if (sp_plot_data) - sp_plot_data->accept (*this); - - subplot_using *sp_using_clause = cmd.using_clause (); - - if (sp_using_clause) - sp_using_clause->accept (*this); - - tree_expression *sp_title_clause = cmd.title_clause (); - - if (sp_title_clause) - sp_title_clause->accept (*this); - - subplot_style *sp_style_clause = cmd.style_clause (); - - if (sp_style_clause) - sp_style_clause->accept (*this); -} - -void -tree_checker::visit_subplot_axes (subplot_axes&) -{ -} - -void -tree_checker::visit_subplot_list (subplot_list& lst) -{ - subplot_list::iterator p = lst.begin (); - - while (p != lst.end ()) - { - subplot *elt = *p++; - - if (elt) - elt->accept (*this); - } -} - -void -tree_checker::visit_subplot_style (subplot_style& cmd) -{ - tree_expression *sp_linetype = cmd.linetype (); - - if (sp_linetype) - sp_linetype->accept (*this); - - tree_expression *sp_pointtype = cmd.pointtype (); - - if (sp_pointtype) - sp_pointtype->accept (*this); -} - -void -tree_checker::visit_subplot_using (subplot_using& cmd) -{ - int qual_count = cmd.qualifier_count (); - - if (qual_count > 0) - { - tree_expression **x = cmd.qualifiers (); - - for (int i = 0; i < qual_count; i++) - { - if (x[i]) - x[i]->accept (*this); - } - } - else - { - tree_expression *scanf_fmt = cmd.scanf_format (); - - if (scanf_fmt) - scanf_fmt->accept (*this); - } -} - -void tree_checker::visit_switch_case (tree_switch_case& cs) { tree_expression *label = cs.case_label ();