{"ast_node_type":"function","tokens":[{"end":78,"kind":"keyword","start":0,"text":"fn"}]}
    fn as_pattern(&self, path: tt::TopSubtree, span: Span) -> tt::TopSubtree {
impl VariantShape {
        self.as_pattern_map(path, span, |it| quote!(span => #it))