(self, tag)
| 153 | enum(attrs['type'],attrs['name'],attrs['value']) |
| 154 | |
| 155 | def end(self, tag): |
| 156 | if debug: |
| 157 | print "end %s" % tag |
| 158 | if tag == 'function': |
| 159 | if self.function != None: |
| 160 | function(self.function, self.function_descr, |
| 161 | self.function_return, self.function_args, |
| 162 | self.function_file, self.function_cond) |
| 163 | self.in_function = 0 |
| 164 | elif tag == 'arg': |
| 165 | if self.in_function == 1: |
| 166 | self.function_args.append([self.function_arg_name, |
| 167 | self.function_arg_type, |
| 168 | self.function_arg_info]) |
| 169 | elif tag == 'return': |
| 170 | if self.in_function == 1: |
| 171 | self.function_return = [self.function_return_type, |
| 172 | self.function_return_info, |
| 173 | self.function_return_field] |
| 174 | elif tag == 'info': |
| 175 | str = '' |
| 176 | for c in self._data: |
| 177 | str = str + c |
| 178 | if self.in_function == 1: |
| 179 | self.function_descr = str |
| 180 | elif tag == 'cond': |
| 181 | str = '' |
| 182 | for c in self._data: |
| 183 | str = str + c |
| 184 | if self.in_function == 1: |
| 185 | self.function_cond = str |
| 186 | |
| 187 | |
| 188 | def function(name, desc, ret, args, file, cond): |
no test coverage detected