diff src/pt-idx.cc @ 5099:f7e39f977fe8

[project @ 2004-12-24 19:06:01 by jwe]
author jwe
date Fri, 24 Dec 2004 19:06:01 +0000
parents f6d6335c08f6
children e35b034d3523
line wrap: on
line diff
--- a/src/pt-idx.cc	Sat Dec 18 15:04:20 2004 +0000
+++ b/src/pt-idx.cc	Fri Dec 24 19:06:01 2004 +0000
@@ -110,6 +110,22 @@
     }
 }
 
+bool
+tree_index_expression::has_magic_end (void) const
+{
+  for (std::list<tree_argument_list *>::const_iterator p = args.begin ();
+       p != args.end ();
+       p++)
+    {
+      tree_argument_list *elt = *p;
+
+      if (elt && elt->has_magic_end ())
+	return true;
+    }
+  
+  return false;
+}
+
 // This is useful for printing the name of the variable in an indexed
 // assignment.