diff src/pt-arg-list.h @ 5841:fb4dea2184bf

[project @ 2006-06-05 20:59:25 by jwe]
author jwe
date Mon, 05 Jun 2006 20:59:25 +0000
parents 4c8a2e4e0717
children db0598f94c0f
line wrap: on
line diff
--- a/src/pt-arg-list.h	Thu Jun 01 22:08:00 2006 +0000
+++ b/src/pt-arg-list.h	Mon Jun 05 20:59:25 2006 +0000
@@ -45,10 +45,11 @@
   typedef tree_expression* element_type;
 
   tree_argument_list (void)
-    : list_includes_magic_end (false) { }
+    : list_includes_magic_end (false), simple_assign_lhs (false) { }
 
   tree_argument_list (tree_expression *t)
-    : list_includes_magic_end (false) { append (t); }
+    : list_includes_magic_end (false), simple_assign_lhs (false)
+  { append (t); }
 
   ~tree_argument_list (void);
 
@@ -66,6 +67,10 @@
 
   int nargout_count (void) const;
 
+  void mark_as_simple_assign_lhs (void) { simple_assign_lhs = true; }
+
+  bool is_simple_assign_lhs (void) { return simple_assign_lhs; }
+
   bool all_elements_are_constant (void) const;
 
   octave_value_list convert_to_const_vector (const octave_value *object = 0);
@@ -78,6 +83,8 @@
 
   bool list_includes_magic_end;
 
+  bool simple_assign_lhs;
+
   // No copying!
 
   tree_argument_list (const tree_argument_list&);