(&mut self, annotation: &Annotation, cp: &ConstantPool)
| 319 | } |
| 320 | |
| 321 | fn write_annotation(&mut self, annotation: &Annotation, cp: &ConstantPool) -> Result<usize, Error> { |
| 322 | // type_index |
| 323 | self.write_u16(annotation.type_index.idx as u16) |
| 324 | // num_element_value_pairs |
| 325 | .and(self.write_u16(annotation.element_value_pairs.len() as u16)) |
| 326 | // element_value_pairs |
| 327 | .and(annotation.element_value_pairs.iter().fold(Ok(0), |_, x| self.write_element_value_pair(x, cp))) |
| 328 | } |
| 329 | |
| 330 | fn write_type_annotation(&mut self, annotation: &TypeAnnotation, cp: &ConstantPool) -> Result<usize, Error> { |
| 331 | // target_type |
no test coverage detected