syntax_data: {"ast_node_type":"function","tokens":[{"end":87,"kind":"keyword","start":0,"text":"fn"}]}
source_snippet:     fn variants(&mut self, targets: &mir::SwitchTargets) -> SmallVec<[VariantIdx; 4]> {
context_before:     /// Creates a `SmallVec` mapping each target in `targets` to its `VariantIdx`.
context_after:         self.index = 0;