{"ast_node_type":"function","tokens":[{"end":77,"kind":"keyword","start":0,"text":"fn"}]}
    fn endpoint_has_type(&self, err: &mut Diag<'_>, span: Span, ty: Ty<'_>) {
        if !ty.references_error() {