comparison 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
comparison
equal deleted inserted replaced
5098:ab4e64f92526 5099:f7e39f977fe8
108 delete *p; 108 delete *p;
109 args.erase (p); 109 args.erase (p);
110 } 110 }
111 } 111 }
112 112
113 bool
114 tree_index_expression::has_magic_end (void) const
115 {
116 for (std::list<tree_argument_list *>::const_iterator p = args.begin ();
117 p != args.end ();
118 p++)
119 {
120 tree_argument_list *elt = *p;
121
122 if (elt && elt->has_magic_end ())
123 return true;
124 }
125
126 return false;
127 }
128
113 // This is useful for printing the name of the variable in an indexed 129 // This is useful for printing the name of the variable in an indexed
114 // assignment. 130 // assignment.
115 131
116 std::string 132 std::string
117 tree_index_expression::name (void) const 133 tree_index_expression::name (void) const