(
&mut self,
package: &str,
parents: &[String],
descriptor: EnumDescriptorProto,
descriptor_path: &[i32],
comments: &SourceCodeComments,
)
| 549 | } |
| 550 | |
| 551 | fn register_enum( |
| 552 | &mut self, |
| 553 | package: &str, |
| 554 | parents: &[String], |
| 555 | descriptor: EnumDescriptorProto, |
| 556 | descriptor_path: &[i32], |
| 557 | comments: &SourceCodeComments, |
| 558 | ) { |
| 559 | let name = descriptor.name.clone().unwrap_or_default(); |
| 560 | let mut path = parents.to_owned(); |
| 561 | path.push(name); |
| 562 | let full_name = canonical_name(package, &path); |
| 563 | let description = comments.comment_for(descriptor_path).map(|s| s.to_string()); |
| 564 | let info = EnumInfo { |
| 565 | descriptor, |
| 566 | description, |
| 567 | }; |
| 568 | self.enums.insert(full_name, info); |
| 569 | } |
| 570 | |
| 571 | fn register_service( |
| 572 | &mut self, |
no test coverage detected