diff libinterp/parse-tree/pt-arg-list.h @ 25382:749d9e858553

move convert_to_const_vector from tree_argument_list to tree_evaluator * pt-eval.h, pt-eval.cc (tree_evaluator::convert_to_const_vector): Move here from pt-arg-list.h and pt-arg-list.cc: Change all uses. (tree_evaluator::m_indexed_object, tree_evaluator::m_index_position, tree_evaluator::m_num_indices): Move here from (tree_evaluator::m_indexed_object, tree_evaluator::m_index_position, tree_evaluator::num_indices): Provide accessors for corresponding member variables. (Fend): Move here from pt-arg-list.cc. Access indexed_object, index_position, and num_indices from evaluator instead of file scope static variables. * pt-arg-list.h (tree_argument_list::includes_magic_end): New function.
author John W. Eaton <jwe@octave.org>
date Tue, 15 May 2018 17:05:47 -0400
parents 3ff9192b676e
children 00f796120a6d
line wrap: on
line diff
--- a/libinterp/parse-tree/pt-arg-list.h	Tue May 15 15:34:09 2018 -0400
+++ b/libinterp/parse-tree/pt-arg-list.h	Tue May 15 17:05:47 2018 -0400
@@ -67,10 +67,24 @@
 
     ~tree_argument_list (void);
 
+    // FIXME: This does not recursively check elements of the list
+    // that are also index expressions.
     bool has_magic_end (void) const;
 
+    bool includes_magic_end (void) const
+    {
+      return m_list_includes_magic_end;
+    }
+
     bool has_magic_tilde (void) const
-    { return m_list_includes_magic_tilde; }
+    {
+      return m_list_includes_magic_tilde;
+    }
+
+    bool includes_magic_tilde (void) const
+    {
+      return m_list_includes_magic_tilde;
+    }
 
     tree_expression * remove_front (void)
     {
@@ -90,10 +104,6 @@
 
     bool is_valid_lvalue_list (void) const;
 
-    octave_value_list
-    convert_to_const_vector (tree_evaluator *tw,
-                             const octave_value *object = nullptr);
-
     string_vector get_arg_names (void) const;
 
     std::list<std::string> variable_names (void) const;