syntex_syntax 0.7.0

Export of libsyntax for code generation
b0VIM 7.4	�tU+��yericktErick-Tryzelaar-MBP.local~erickt/projects/rust/rust-syntex/syntex_syntax/src/fold.rsutf-8
3210#"! Utpq}rm�c\d�	a#
D�]�m%
\�n�X\U�k	#tad�q�{XU��M)(�
�
]
T
P

��POC:,�������hQ�
�
x
r
p
o
H
�	�	�	�	�	�	h	)	���jBA����b\[����f`_�����{zD����d932����d?98�����ysr0���    }        s.and_then(|s| noop_fold_stmt(s, self))    fn fold_stmt(&mut self, s: P<Stmt>) -> SmallVector<P<Stmt>> {    }        noop_fold_block(b, self)    fn fold_block(&mut self, b: P<Block>) -> P<Block> {    }        noop_fold_fn_decl(d, self)    fn fold_fn_decl(&mut self, d: P<FnDecl>) -> P<FnDecl> {    }        noop_fold_impl_item(i, self)    fn fold_impl_item(&mut self, i: P<ImplItem>) -> SmallVector<P<ImplItem>> {    }        noop_fold_trait_item(i, self)    fn fold_trait_item(&mut self, i: P<TraitItem>) -> SmallVector<P<TraitItem>> {    }        noop_fold_item_underscore(i, self)    fn fold_item_underscore(&mut self, i: Item_) -> Item_ {    }        noop_fold_struct_field(sf, self)    fn fold_struct_field(&mut self, sf: StructField) -> StructField {    }        noop_fold_item_simple(i, self)    fn fold_item_simple(&mut self, i: Item) -> Item {    }        noop_fold_item(i, self)    fn fold_item(&mut self, i: P<Item>) -> SmallVector<P<Item>> {    }        noop_fold_foreign_item(ni, self)    fn fold_foreign_item(&mut self, ni: P<ForeignItem>) -> P<ForeignItem> {    }        noop_fold_view_path(view_path, self)    fn fold_view_path(&mut self, view_path: P<ViewPath>) -> P<ViewPath> {    }        noop_fold_meta_item(meta_item, self)    fn fold_meta_item(&mut self, meta_item: P<MetaItem>) -> P<MetaItem> {    }        noop_fold_meta_items(meta_items, self)    fn fold_meta_items(&mut self, meta_items: Vec<P<MetaItem>>) -> Vec<P<MetaItem>> {    }        noop_fold_crate(c, self)    fn fold_crate(&mut self, c: Crate) -> Crate {    // in an overridden default method.    // being able to call out to the super default method    // This is a necessary API workaround to the problem of not    //    // out to the folder again, not other `noop_*` functions.    // of a call to a public `noop_*` function that only calls    // Any additions to this trait should happen in formpub trait Folder : Sized {}    }        OwnedSlice::from_vec(self.into_vec().move_map(f))    fn move_map<F>(self, f: F) -> OwnedSlice<T> where F: FnMut(T) -> T {impl<T> MoveMap<T> for OwnedSlice<T> {}    }        self.into_iter().map(|p| f(p)).collect()    fn move_map<F>(self, mut f: F) -> Vec<T> where F: FnMut(T) -> T {impl<T> MoveMap<T> for Vec<T> {}    fn move_map<F>(self, f: F) -> Self where F: FnMut(T) -> T;pub trait MoveMap<T> {// This could have a better place to live.use std::rc::Rc;use util::small_vector::SmallVector;use ptr::P;use parse::token;use owned_slice::OwnedSlice;use codemap::{respan, Span, Spanned};use ast_util;use ast;use ast::*;//! that are created by the expansion of a macro.//! a folder renaming item names in a module will miss all of those//! an AST before macro expansion is probably a bad idea. For instance,//! Note: using a Folder (other than the MacroExpander Folder) on//!//! AST.//! expansion is a Folder that walks over an AST and produces another//! and returns a piece of the same type. So, for instance, macro//! A Folder represents an AST->AST fold; it accepts an AST piece,// except according to those terms.// option. This file may not be copied, modified, or distributed// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or//// http://rust-lang.org/COPYRIGHT.// file at the top-level directory of this distribution and at// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHTad
�
#��R@2("!���w*�
�
�
�
U

�����] ����c�
�
�
�
}    }            "zz!zz((zz$zz:zz$(zz $zz:zz)zz+=>(zz$(zz$zz$zz)+)));".to_string());            pprust::to_string(|s| fake_print_crate(s, &folded_crate)),            "matches_codepattern",            matches_codepattern,        assert_pred!(        let folded_crate = zz_fold.fold_crate(ast);             (g $(d $d $e)+))} ".to_string());            "macro_rules! a {(b $c:expr $(d $e:token)f+ => \        let ast = string_to_crate(        let mut zz_fold = ToZzIdentFolder;    #[test] fn ident_transformation_in_defs () {    // even inside macro defs....    }            "#[a]mod zz{fn zz(zz:zz,zz:zz){zz!(zz,zz,zz);zz;zz}}".to_string());            pprust::to_string(|s| fake_print_crate(s, &folded_crate)),            "matches_codepattern",            matches_codepattern,        assert_pred!(        let folded_crate = zz_fold.fold_crate(ast);            "#[a] mod b {fn c (d : e, f : g) {h!(i,j,k);l;m}}".to_string());        let ast = string_to_crate(        let mut zz_fold = ToZzIdentFolder;    #[test] fn ident_transformation () {    // make sure idents get transformed everywhere    }        )            }                }                          $predname, a_val, b_val);                    panic!("expected args satisfying {}, got {} and {}",                if !(pred_val(&a_val, &b_val)) {ad8k�P
�����hN2�
�
l
X

����d@���{E�
�

B
7





�	�	\	K	.		���j`C�����g?����m+������lUG54��{JDC���si-�����tf@ �                              let b_val = $b;                let a_val = $a;                let pred_val = $pred;            {        ($pred:expr, $predname:expr, $a:expr , $b:expr) => (    macro_rules! assert_pred {    // maybe add to expand.rs...    }        }            fold::noop_fold_mac(mac, self)        fn fold_mac(&mut self, mac: ast::Mac) -> ast::Mac {        }            token::str_to_ident("zz")        fn fold_ident(&mut self, _: ast::Ident) -> ast::Ident {    impl Folder for ToZzIdentFolder {    struct ToZzIdentFolder;    // change every identifier to "zz"    }        s.print_mod(&krate.module, &krate.attrs)                        krate: &ast::Crate) -> io::Result<()> {    fn fake_print_crate(s: &mut pprust::State,    // this version doesn't care about getting comments or docstrings in.    use super::*;    use fold;    use print::pprust;    use parse::token;    use util::parser_testing::{string_to_crate, matches_codepattern};    use ast;    use std::io;mod tests {#[cfg(test)]}    }        }))            span: span            node: StmtMac(mac.map(|m| folder.fold_mac(m)), semi),        StmtMac(mac, semi) => SmallVector::one(P(Spanned {        }            }))                span: span                node: StmtSemi(folder.fold_expr(e), id),            SmallVector::one(P(Spanned {            let id = folder.new_id(id);        StmtSemi(e, id) => {        }            }))                span: span                node: StmtExpr(folder.fold_expr(e), id),            SmallVector::one(P(Spanned {            let id = folder.new_id(id);        StmtExpr(e, id) => {        }            })).collect()                span: span                node: StmtDecl(d, id),            folder.fold_decl(d).into_iter().map(|d| P(Spanned {            let id = folder.new_id(id);        StmtDecl(d, id) => {    match node {    let span = folder.new_span(span);                                 -> SmallVector<P<Stmt>> {pub fn noop_fold_stmt<T: Folder>(Spanned {node, span}: Stmt, folder: &mut T)}    }        span: folder.new_span(span)        },            ExprParen(ex) => ExprParen(folder.fold_expr(ex))            },                        maybe_expr.map(|x| folder.fold_expr(x)))                        fields.move_map(|x| folder.fold_field(x)),                ExprStruct(folder.fold_path(path),            ExprStruct(path, fields, maybe_expr) => {            ExprMac(mac, delim) => ExprMac(folder.fold_mac(mac), delim),            }),                expn_id: expn_id,                dialect: dialect,                alignstack: alignstack,                volatile: volatile,                clobbers: clobbers,                asm_str_style: asm_str_style,                asm: asm,                }),                    (c, folder.fold_expr(out), is_rw)                outputs: outputs.move_map(|(c, out, is_rw)| {                }),                    (c, folder.fold_expr(input))                inputs: inputs.move_map(|(c, input)| {            }) => ExprInlineAsm(InlineAsm {                expn_id,                dialect,                alignstack,                volatile,                clobbers,                asm_str_style,                asm,                outputs,                inputs,            ExprInlineAsm(InlineAsm {            ExprRet(e) => ExprRet(e.map(|x| folder.fold_expr(x))),            ExprAgain(opt_ident) => ExprAgain(opt_ident.map(|x| folder.fold_ident(x))),            ExprBreak(opt_ident) => ExprBreak(opt_ident.map(|x| folder.fold_ident(x))),ad(}����|]WV�������W932�
�
�
�
�
q
k
j
'
�������^=76�������8
�
f
`
&
 

�	�		G	A	@		�����U)����_5/.����a=76����{UON"������L'! ����X)#"����Z/)('    }        noop_fold_lifetime_defs(lts, self)    fn fold_lifetime_defs(&mut self, lts: Vec<LifetimeDef>) -> Vec<LifetimeDef> {    }        noop_fold_lifetimes(lts, self)    fn fold_lifetimes(&mut self, lts: Vec<Lifetime>) -> Vec<Lifetime> {    }        noop_fold_struct_def(struct_def, self)    fn fold_struct_def(&mut self, struct_def: P<StructDef>) -> P<StructDef> {    }        noop_fold_poly_trait_ref(p, self)    fn fold_poly_trait_ref(&mut self, p: PolyTraitRef) -> PolyTraitRef {    }        noop_fold_trait_ref(p, self)    fn fold_trait_ref(&mut self, p: TraitRef) -> TraitRef {    }        noop_fold_generics(generics, self)    fn fold_generics(&mut self, generics: Generics) -> Generics {    }        noop_fold_arg(a, self)    fn fold_arg(&mut self, a: Arg) -> Arg {    }        noop_fold_attribute(at, self)    fn fold_attribute(&mut self, at: Attribute) -> Option<Attribute> {    }        noop_fold_lifetime_def(l, self)    fn fold_lifetime_def(&mut self, l: LifetimeDef) -> LifetimeDef {    }        noop_fold_lifetime(l, self)    fn fold_lifetime(&mut self, l: Lifetime) -> Lifetime {    }        noop_fold_explicit_self_underscore(es, self)    fn fold_explicit_self_underscore(&mut self, es: ExplicitSelf_) -> ExplicitSelf_ {    }        noop_fold_explicit_self(es, self)    fn fold_explicit_self(&mut self, es: ExplicitSelf) -> ExplicitSelf {    }        // fold::noop_fold_mac(_mac, self)        // definition in your trait impl:        // works on macros, use this        // if you really want a folder that        // NB: see note about macros above.        panic!("fold_mac disabled by default");    fn fold_mac(&mut self, _mac: Mac) -> Mac {    }        noop_fold_local(l, self)    fn fold_local(&mut self, l: P<Local>) -> P<Local> {    }        noop_fold_parenthesized_parameter_data(p, self)    {                                         -> ParenthesizedParameterData    fn fold_parenthesized_parameter_data(&mut self, p: ParenthesizedParameterData)    }        noop_fold_angle_bracketed_parameter_data(p, self)    {                                           -> AngleBracketedParameterData    fn fold_angle_bracketed_parameter_data(&mut self, p: AngleBracketedParameterData)    }        noop_fold_path_parameters(p, self)    fn fold_path_parameters(&mut self, p: PathParameters) -> PathParameters {    }        noop_fold_path(p, self)    fn fold_path(&mut self, p: Path) -> Path {    }        noop_fold_usize(i, self)    fn fold_usize(&mut self, i: usize) -> usize {    }        noop_fold_ident(i, self)    fn fold_ident(&mut self, i: Ident) -> Ident {    }        noop_fold_variant(v, self)    fn fold_variant(&mut self, v: P<Variant>) -> P<Variant> {    }        noop_fold_foreign_mod(nm, self)    fn fold_foreign_mod(&mut self, nm: ForeignMod) -> ForeignMod {    }        noop_fold_mod(m, self)    fn fold_mod(&mut self, m: Mod) -> Mod {    }        noop_fold_ty_binding(t, self)    fn fold_ty_binding(&mut self, t: P<TypeBinding>) -> P<TypeBinding> {    }        noop_fold_ty(t, self)    fn fold_ty(&mut self, t: P<Ty>) -> P<Ty> {    }        e.map(|e| noop_fold_expr(e, self))    fn fold_expr(&mut self, e: P<Expr>) -> P<Expr> {    }        noop_fold_decl(d, self)    fn fold_decl(&mut self, d: P<Decl>) -> SmallVector<P<Decl>> {    }        noop_fold_pat(p, self)    fn fold_pat(&mut self, p: P<Pat>) -> P<Pat> {    }        noop_fold_arm(a, self)    fn fold_arm(&mut self, a: Arm) -> Arm {ad�m����F����wVPO�
�
�
�
j
d
c

����tnm&�����L*$#�
�
�
�
u
V
P
O

�	�	�	�	�	Q	K	J		����bXRQ"�LJI���r7)���]��[��q3��pN-�����}    })        span: fld.new_span(span)        },            }                             }))                                }                                    span: fld.new_span(path_list_ident.span)                                    },                                            PathListMod { id: fld.new_id(id) }                                        PathListMod { id } =>                                            },                                                name: name                                                id: fld.new_id(id),                                            PathListIdent {                                        PathListIdent { id, name } =>                                    node: match path_list_ident.node {                                Spanned {                             path_list_idents.move_map(|path_list_ident| {                ViewPathList(fld.fold_path(path),            ViewPathList(path, path_list_idents) => {            }                ViewPathGlob(fld.fold_path(path))            ViewPathGlob(path) => {            }                ViewPathSimple(ident, fld.fold_path(path))            ViewPathSimple(ident, path) => {        node: match node {    view_path.map(|Spanned {node, span}| Spanned {pub fn noop_fold_view_path<T: Folder>(view_path: P<ViewPath>, fld: &mut T) -> P<ViewPath> {}    meta_items.move_map(|x| fld.fold_meta_item(x))                                       -> Vec<P<MetaItem>> {pub fn noop_fold_meta_items<T: Folder>(meta_items: Vec<P<MetaItem>>, fld: &mut T)}    }        sp    fn new_span(&mut self, sp: Span) -> Span {    }        i    fn new_id(&mut self, i: NodeId) -> NodeId {    }        noop_fold_where_predicate(where_predicate, self)                            -> WherePredicate {    fn fold_where_predicate(&mut self, where_predicate: WherePredicate)    }        noop_fold_where_clause(where_clause, self)                         -> WhereClause {    fn fold_where_clause(&mut self, where_clause: WhereClause)    }        noop_fold_field(field, self)    fn fold_field(&mut self, field: Field) -> Field {    }        noop_fold_mt(mt, self)    fn fold_mt(&mut self, mt: MutTy) -> MutTy {    }        noop_fold_ty_param_bound(tpb, self)    fn fold_ty_param_bound(&mut self, tpb: TyParamBound) -> TyParamBound {    }        noop_fold_bounds(b, self)                       -> OwnedSlice<TyParamBound> {    fn fold_bounds(&mut self, b: OwnedSlice<TyParamBound>)    }        noop_fold_opt_bounds(b, self)                       -> Option<OwnedSlice<TyParamBound>> {    fn fold_opt_bounds(&mut self, b: Option<OwnedSlice<TyParamBound>>)    }        noop_fold_variant_arg(va, self)    fn fold_variant_arg(&mut self, va: VariantArg) -> VariantArg {    }        noop_fold_opt_lifetime(o_lt, self)    fn fold_opt_lifetime(&mut self, o_lt: Option<Lifetime>) -> Option<Lifetime> {    }        noop_fold_interpolated(nt, self)    fn fold_interpolated(&mut self, nt: token::Nonterminal) -> token::Nonterminal {    }        noop_fold_token(t, self)    fn fold_token(&mut self, t: token::Token) -> token::Token {    }        noop_fold_tts(tts, self)    fn fold_tts(&mut self, tts: &[TokenTree]) -> Vec<TokenTree> {    }        noop_fold_tt(tt, self)    fn fold_tt(&mut self, tt: &TokenTree) -> TokenTree {    }        noop_fold_ty_params(tps, self)    fn fold_ty_params(&mut self, tps: OwnedSlice<TyParam>) -> OwnedSlice<TyParam> {    }        noop_fold_ty_param(tp, self)    fn fold_ty_param(&mut self, tp: TyParam) -> TyParam {ad2�c�[YX����jGA?>�
�
�
R
-
 
���|usr����ha_^�
�
�
�
s
B

�	�	�	V		����{6��R'����f1#����ZL$�������C�������E����lM��                    TupleVariantKind(variant_args.move_map(|x|                TupleVariantKind(variant_args) => {            kind: match kind {            attrs: fold_attrs(attrs, fld),            name: name,            id: fld.new_id(id),        node: Variant_ {    v.map(|Spanned {node: Variant_ {id, name, attrs, kind, disr_expr, vis}, span}| Spanned {pub fn noop_fold_variant<T: Folder>(v: P<Variant>, fld: &mut T) -> P<Variant> {}    }        items: items.move_map(|x| fld.fold_foreign_item(x)),        abi: abi,    ForeignMod {                                        fld: &mut T) -> ForeignMod {pub fn noop_fold_foreign_mod<T: Folder>(ForeignMod {abi, items}: ForeignMod,}    })        span: fld.new_span(span)        },            }                TyPolyTraitRef(bounds.move_map(|b| fld.fold_ty_param_bound(b)))            TyPolyTraitRef(bounds) => {            }                TyTypeof(fld.fold_expr(expr))            TyTypeof(expr) => {            }                TyFixedLengthVec(fld.fold_ty(ty), fld.fold_expr(e))            TyFixedLengthVec(ty, e) => {            }                            fld.fold_bounds(bounds))                TyObjectSum(fld.fold_ty(ty),            TyObjectSum(ty, bounds) => {            }                TyPath(qself, fld.fold_path(path))                });                    }                        position: position                        ty: fld.fold_ty(ty),                    QSelf {                let qself = qself.map(|QSelf { ty, position }| {            TyPath(qself, path) => {            TyParen(ty) => TyParen(fld.fold_ty(ty)),            TyTup(tys) => TyTup(tys.move_map(|ty| fld.fold_ty(ty))),            }                }))                    decl: fld.fold_fn_decl(decl)                    abi: abi,                    unsafety: unsafety,                    lifetimes: fld.fold_lifetime_defs(lifetimes),                TyBareFn(f.map(|BareFnTy {lifetimes, unsafety, abi, decl}| BareFnTy {            TyBareFn(f) => {            }                TyRptr(fld.fold_opt_lifetime(region), fld.fold_mt(mt))            TyRptr(region, mt) => {            TyPtr(mt) => TyPtr(fld.fold_mt(mt)),            TyVec(ty) => TyVec(fld.fold_ty(ty)),            TyInfer => node,        node: match node {        id: fld.new_id(id),    t.map(|Ty {id, node, span}| Ty {pub fn noop_fold_ty<T: Folder>(t: P<Ty>, fld: &mut T) -> P<Ty> {}    })        span: fld.new_span(span),        ty: fld.fold_ty(ty),        ident: ident,        id: fld.new_id(id),    b.map(|TypeBinding { id, ident, ty, span }| TypeBinding {pub fn noop_fold_ty_binding<T: Folder>(b: P<TypeBinding>, fld: &mut T) -> P<TypeBinding> {}    })        })).collect()            span: fld.new_span(span)            node: DeclItem(i),        DeclItem(it) => fld.fold_item(it).into_iter().map(|i| P(Spanned {        })),            span: fld.new_span(span)            node: DeclLocal(fld.fold_local(l)),        DeclLocal(l) => SmallVector::one(P(Spanned {    d.and_then(|Spanned {node, span}| match node {pub fn noop_fold_decl<T: Folder>(d: P<Decl>, fld: &mut T) -> SmallVector<P<Decl>> {}    }        body: fld.fold_expr(body),        guard: guard.map(|x| fld.fold_expr(x)),        pats: pats.move_map(|x| fld.fold_pat(x)),        attrs: fold_attrs(attrs, fld),    Arm {pub fn noop_fold_arm<T: Folder>(Arm {attrs, pats, guard, body}: Arm, fld: &mut T) -> Arm {}    attrs.into_iter().flat_map(|x| fld.fold_attribute(x).into_iter()).collect()pub fn fold_attrs<T: Folder>(attrs: Vec<Attribute>, fld: &mut T) -> Vec<Attribute> {ad�d���B0!�������VPNM�
�
�
)
�������'����L#�
�
�
�
j
"
�	�	{	/	����&���C��lji���Q9�cP5!����{yx#���w5+������}    }        }            SelfExplicit(fld.fold_ty(typ), ident)        SelfExplicit(typ, ident) => {        }            SelfRegion(fld.fold_opt_lifetime(lifetime), m, ident)        SelfRegion(lifetime, m, ident) => {        SelfStatic | SelfValue(_) => es,    match es {                                                     -> ExplicitSelf_ {pub fn noop_fold_explicit_self_underscore<T: Folder>(es: ExplicitSelf_, fld: &mut T)}    })        span: fld.new_span(span)        },            is_sugared_doc: is_sugared_doc            value: fld.fold_meta_item(value),            style: style,            id: id,        node: Attribute_ {    Some(Spanned {    let Spanned {node: Attribute_ {id, style, value, is_sugared_doc}, span} = at;pub fn noop_fold_attribute<T: Folder>(at: Attribute, fld: &mut T) -> Option<Attribute> {}    })        span: fld.new_span(span)        source: source,        init: init.map(|e| fld.fold_expr(e)),        pat: fld.fold_pat(pat),        ty: ty.map(|t| fld.fold_ty(t)),        id: fld.new_id(id),    l.map(|Local {id, pat, ty, init, source, span}| Local {pub fn noop_fold_local<T: Folder>(l: P<Local>, fld: &mut T) -> P<Local> {}                                 span: fld.new_span(span) }                                 output: output.map(|ty| fld.fold_ty(ty)),    ParenthesizedParameterData { inputs: inputs.move_map(|ty| fld.fold_ty(ty)),    let ParenthesizedParameterData { inputs, output, span } = data;{                                                         -> ParenthesizedParameterData                                                         fld: &mut T)pub fn noop_fold_parenthesized_parameter_data<T: Folder>(data: ParenthesizedParameterData,}                                  bindings: bindings.move_map(|b| fld.fold_ty_binding(b)) }                                  types: types.move_map(|ty| fld.fold_ty(ty)),    AngleBracketedParameterData { lifetimes: fld.fold_lifetimes(lifetimes),    let AngleBracketedParameterData { lifetimes, types, bindings } = data;{                                                           -> AngleBracketedParameterData                                                           fld: &mut T)pub fn noop_fold_angle_bracketed_parameter_data<T: Folder>(data: AngleBracketedParameterData,}    }            ParenthesizedParameters(fld.fold_parenthesized_parameter_data(data)),        ParenthesizedParameters(data) =>            AngleBracketedParameters(fld.fold_angle_bracketed_parameter_data(data)),        AngleBracketedParameters(data) =>    match path_parameters {{                                            -> PathParameterspub fn noop_fold_path_parameters<T: Folder>(path_parameters: PathParameters, fld: &mut T)}    }        span: fld.new_span(span)        }),            parameters: fld.fold_path_parameters(parameters),            identifier: fld.fold_ident(identifier),        segments: segments.move_map(|PathSegment {identifier, parameters}| PathSegment {        global: global,    Path {pub fn noop_fold_path<T: Folder>(Path {global, segments, span}: Path, fld: &mut T) -> Path {}    ipub fn noop_fold_usize<T: Folder>(i: usize, _: &mut T) -> usize {}    ipub fn noop_fold_ident<T: Folder>(i: Ident, _: &mut T) -> Ident {}    })        span: fld.new_span(span),        },            vis: vis,            disr_expr: disr_expr.map(|e| fld.fold_expr(e)),            },                }                    StructVariantKind(fld.fold_struct_def(struct_def))                StructVariantKind(struct_def) => {                }                        fld.fold_variant_arg(x)))ad8�a�i[$������U�
�
�
�
�
v
J
/

���UJ)" ����oigf�
�
�
^
6

�	�	A	#		����O������W$"!�q?���]3���e[LFDC
�d2/��0��// trait to include one-to-many and one-to-one versions of these entry points, but that// they insist on having exactly one piece. One solution would be to mangle the fold// folder to return *multiple* items; this is a problem for the nodes here, because// One problem here occurs because the types for fold_item, fold_stmt, etc. allow the//// for macro hygiene, but possibly not elsewhere.// parsed pieces have gotten implanted ito *other* macro invocations. This is relevant// NB: this can occur only when applying a fold to partially expanded code, where///// apply folder to elements of interpolated nodes}    }        _ => t        }            token::MatchNt(fld.fold_ident(name), fld.fold_ident(kind), namep, kindp)        token::MatchNt(name, kind, namep, kindp) => {        }            token::SubstNt(fld.fold_ident(ident), namep)        token::SubstNt(ident, namep) => {        token::Interpolated(nt) => token::Interpolated(fld.fold_interpolated(nt)),        token::Lifetime(id) => token::Lifetime(fld.fold_ident(id)),        }            token::Ident(fld.fold_ident(id), followed_by_colons)        token::Ident(id, followed_by_colons) => {    match t {pub fn noop_fold_token<T: Folder>(t: token::Token, fld: &mut T) -> token::Token {// apply ident folder if it's an ident, apply other folds to interpolated nodes}    tts.iter().map(|tt| fld.fold_tt(tt)).collect()pub fn noop_fold_tts<T: Folder>(tts: &[TokenTree], fld: &mut T) -> Vec<TokenTree> {}    }                       })),                           ..**seq                           separator: seq.separator.clone().map(|tok| fld.fold_token(tok)),                           tts: fld.fold_tts(&seq.tts),                       Rc::new(SequenceRepetition {            TtSequence(span,        TtSequence(span, ref seq) =>        },                        ))                            }                                close_span: delimed.close_span,                                tts: fld.fold_tts(&delimed.tts),                                open_span: delimed.open_span,                                delim: delimed.delim,                            Delimited {            TtDelimited(span, Rc::new(        TtDelimited(span, ref delimed) => {            TtToken(span, fld.fold_token(tok.clone())),        TtToken(span, ref tok) =>    match *tt {pub fn noop_fold_tt<T: Folder>(tt: &TokenTree, fld: &mut T) -> TokenTree {}    }        ty: fld.fold_ty(ty)        pat: fld.fold_pat(pat),        id: fld.new_id(id),    Arg {pub fn noop_fold_arg<T: Folder>(Arg {id, pat, ty}: Arg, fld: &mut T) -> Arg {}    })        span: fld.new_span(span)        },            MetaNameValue(id, s) => MetaNameValue(id, s)            }                MetaList(id, mis.move_map(|e| fld.fold_meta_item(e)))            MetaList(id, mis) => {            MetaWord(id) => MetaWord(id),        node: match node {    mi.map(|Spanned {node, span}| Spanned {pub fn noop_fold_meta_item<T: Folder>(mi: P<MetaItem>, fld: &mut T) -> P<MetaItem> {}    }        span: fld.new_span(span)        },            }                MacInvocTT(fld.fold_path(p), fld.fold_tts(&tts), ctxt)            MacInvocTT(p, tts, ctxt) => {        node: match node {    Spanned {pub fn noop_fold_mac<T: Folder>(Spanned {node, span}: Mac, fld: &mut T) -> Mac {}    }        span: fld.new_span(span)        node: fld.fold_explicit_self_underscore(node),    Spanned {                                          -> ExplicitSelf {pub fn noop_fold_explicit_self<T: Folder>(Spanned {span, node}: ExplicitSelf, fld: &mut T)adFrD�S��T'$�
v
1
���tF��U�
�
k

�	z	 	��f;��S��&�q�����K���Q$�����~I9�{usrq}    }        RegionTyParamBound(lifetime) => RegionTyParamBound(fld.fold_lifetime(lifetime)),        TraitTyParamBound(ty, modifier) => TraitTyParamBound(fld.fold_poly_trait_ref(ty), modifier),    match tpb {                                   where T: Folder {                                   -> TyParamBoundpub fn noop_fold_ty_param_bound<T>(tpb: TyParamBound, fld: &mut T)}    })        variadic: variadic        },            NoReturn(span) => NoReturn(span)            DefaultReturn(span) => DefaultReturn(span),            Return(ty) => Return(fld.fold_ty(ty)),        output: match output {        inputs: inputs.move_map(|x| fld.fold_arg(x)),    decl.map(|FnDecl {inputs, output, variadic}| FnDecl {pub fn noop_fold_fn_decl<T: Folder>(decl: P<FnDecl>, fld: &mut T) -> P<FnDecl> {}    }            token::NtWhereClause(fld.fold_where_clause(where_clause)),        token::NtWhereClause(where_clause) =>        token::NtGenerics(generics) => token::NtGenerics(fld.fold_generics(generics)),                               .expect_one("expected fold to produce exactly one item")),            token::NtTraitItem(fld.fold_trait_item(arm)        token::NtTraitItem(arm) =>                              .expect_one("expected fold to produce exactly one item")),            token::NtImplItem(fld.fold_impl_item(arm)        token::NtImplItem(arm) =>        token::NtArm(arm) => token::NtArm(fld.fold_arm(arm)),        token::NtTT(tt) => token::NtTT(P(fld.fold_tt(&*tt))),        token::NtPath(path) => token::NtPath(Box::new(fld.fold_path(*path))),        token::NtMeta(meta_item) => token::NtMeta(fld.fold_meta_item(meta_item)),            token::NtIdent(Box::new(fld.fold_ident(*id)), is_mod_name),        token::NtIdent(id, is_mod_name) =>        token::NtTy(ty) => token::NtTy(fld.fold_ty(ty)),        token::NtExpr(expr) => token::NtExpr(fld.fold_expr(expr)),        token::NtPat(pat) => token::NtPat(fld.fold_pat(pat)),                          .expect_one("expected fold to produce exactly one statement")),                          // which map single items to single items                          // to peek inside interpolated nodes will be renamings/markings,                          // this is probably okay, because the only folds likely            token::NtStmt(fld.fold_stmt(stmt)        token::NtStmt(stmt) =>        token::NtBlock(block) => token::NtBlock(fld.fold_block(block)),                          .expect_one("expected fold to produce exactly one item")),                          // which map single items to single items                          // to peek inside interpolated nodes will be renamings/markings,                          // this is probably okay, because the only folds likely            token::NtItem(fld.fold_item(item)        token::NtItem(item) =>    match nt {                                         -> token::Nonterminal {pub fn noop_fold_interpolated<T: Folder>(nt: token::Nonterminal, fld: &mut T)// tried to figure out what I would do with multiple items there....// multiple items, but decided against it when I looked at parse_item_or_view_item and// BTW, design choice: I considered just changing the type of, e.g., NtItem to contain//// comment, and doing something appropriate.// getting called on NtItem or NtStmt nodes. Hopefully they'll wind up reading this// node, and will be confused by the fact that their "fold_item" or "fold_stmt" isn't// nonexistent. The danger is that someone will apply a fold to a partially expanded// to put in dynamic checks. I think the performance impact of this will be pretty much// would probably confuse a lot of people and help very few. Instead, I'm just goingad:�]�{mQ;�����w8	�
�
�
x
U
O
M
L

���[USR����|<

�
}
T
R
Q
�	�	�	r	<		�����Z+�������V���U�f��S*�q��p&
��        ast::WherePredicate::EqPredicate(ast::WhereEqPredicate{id,        }            })                bounds: bounds.move_map(|bound| fld.fold_lifetime(bound))                lifetime: fld.fold_lifetime(lifetime),                span: fld.new_span(span),            ast::WherePredicate::RegionPredicate(ast::WhereRegionPredicate {                                                                       span}) => {                                                                       bounds,        ast::WherePredicate::RegionPredicate(ast::WhereRegionPredicate{lifetime,        }            })                span: fld.new_span(span)                bounds: bounds.move_map(|x| fld.fold_ty_param_bound(x)),                bounded_ty: fld.fold_ty(bounded_ty),                bound_lifetimes: fld.fold_lifetime_defs(bound_lifetimes),            ast::WherePredicate::BoundPredicate(ast::WhereBoundPredicate {                                                                     span}) => {                                                                     bounds,                                                                     bounded_ty,        ast::WherePredicate::BoundPredicate(ast::WhereBoundPredicate{bound_lifetimes,    match pred {                                 -> WherePredicate {                                 fld: &mut T)                                 pred: WherePredicate,pub fn noop_fold_where_predicate<T: Folder>(}    }        })            fld.fold_where_predicate(predicate)        predicates: predicates.move_map(|predicate| {        id: fld.new_id(id),    WhereClause {                              -> WhereClause {                              fld: &mut T)                              WhereClause {id, predicates}: WhereClause,pub fn noop_fold_where_clause<T: Folder>(}    }        where_clause: fld.fold_where_clause(where_clause),        lifetimes: fld.fold_lifetime_defs(lifetimes),        ty_params: fld.fold_ty_params(ty_params),    Generics {                                     fld: &mut T) -> Generics {pub fn noop_fold_generics<T: Folder>(Generics {ty_params, lifetimes, where_clause}: Generics,}    o_lt.map(|lt| fld.fold_lifetime(lt))                                         -> Option<Lifetime> {pub fn noop_fold_opt_lifetime<T: Folder>(o_lt: Option<Lifetime>, fld: &mut T)}    lts.move_map(|l| fld.fold_lifetime_def(l))                                          -> Vec<LifetimeDef> {pub fn noop_fold_lifetime_defs<T: Folder>(lts: Vec<LifetimeDef>, fld: &mut T)}    lts.move_map(|l| fld.fold_lifetime(l))pub fn noop_fold_lifetimes<T: Folder>(lts: Vec<Lifetime>, fld: &mut T) -> Vec<Lifetime> {}    }        bounds: fld.fold_lifetimes(l.bounds),        lifetime: fld.fold_lifetime(l.lifetime),    LifetimeDef {                                         -> LifetimeDef {pub fn noop_fold_lifetime_def<T: Folder>(l: LifetimeDef, fld: &mut T)}    }        span: fld.new_span(l.span)        name: l.name,        id: fld.new_id(l.id),    Lifetime {pub fn noop_fold_lifetime<T: Folder>(l: Lifetime, fld: &mut T) -> Lifetime {}    tps.move_map(|tp| fld.fold_ty_param(tp))                                      -> OwnedSlice<TyParam> {pub fn noop_fold_ty_params<T: Folder>(tps: OwnedSlice<TyParam>, fld: &mut T)}    }        span: span        default: default.map(|x| fld.fold_ty(x)),        bounds: fld.fold_bounds(bounds),        ident: ident,        id: fld.new_id(id),    TyParam {    let TyParam {id, ident, bounds, default, span} = tp;pub fn noop_fold_ty_param<T: Folder>(tp: TyParam, fld: &mut T) -> TyParam {ad�m�x-���vM>4.,+�
�
M




���|i^J'

��S�
�
�
�
�
Q
C
&

�	�	�	�	v	p	n	m			��vpnm
�����r%�����A?>����f`^]��^-������M-�����c%��        ItemFn(decl, unsafety, constness, abi, generics, body) => {        }            ItemConst(folder.fold_ty(t), folder.fold_expr(e))        ItemConst(t, e) => {        }            ItemStatic(folder.fold_ty(t), m, folder.fold_expr(e))        ItemStatic(t, m, e) => {        }            ItemUse(folder.fold_view_path(view_path))        ItemUse(view_path) => {        ItemExternCrate(string) => ItemExternCrate(string),    match i {pub fn noop_fold_item_underscore<T: Folder>(i: Item_, folder: &mut T) -> Item_ {}    })        span: folder.new_span(span),        rules: rules,        expr: expr.map(|x| folder.fold_expr(x)),        stmts: stmts.into_iter().flat_map(|s| folder.fold_stmt(s).into_iter()).collect(),        id: folder.new_id(id),    b.map(|Block {id, stmts, expr, rules, span}| Block {pub fn noop_fold_block<T: Folder>(b: P<Block>, folder: &mut T) -> P<Block> {}    }        ty: folder.fold_ty(ty)        id: folder.new_id(id),    VariantArg {                                    -> VariantArg {fn noop_fold_variant_arg<T: Folder>(VariantArg {id, ty}: VariantArg, folder: &mut T)}    bounds.move_map(|bound| folder.fold_ty_param_bound(bound))                          -> TyParamBounds {fn noop_fold_bounds<T: Folder>(bounds: TyParamBounds, folder: &mut T)}    b.map(|bounds| folder.fold_bounds(bounds))                                       -> Option<OwnedSlice<TyParamBound>> {pub fn noop_fold_opt_bounds<T: Folder>(b: Option<OwnedSlice<TyParamBound>>, folder: &mut T)}    }        mutbl: mutbl,        ty: folder.fold_ty(ty),    MutTy {pub fn noop_fold_mt<T: Folder>(MutTy {ty, mutbl}: MutTy, folder: &mut T) -> MutTy {}    }        span: folder.new_span(span)        expr: folder.fold_expr(expr),        ident: respan(ident.span, folder.fold_ident(ident.node)),    Field {pub fn noop_fold_field<T: Folder>(Field {ident, expr, span}: Field, folder: &mut T) -> Field {}    }        span: fld.new_span(span)        },            attrs: fold_attrs(attrs, fld),            ty: fld.fold_ty(ty),            kind: kind,            id: fld.new_id(id),        node: StructField_ {    Spanned {    let StructField {node: StructField_ {id, kind, ty, attrs}, span} = f;pub fn noop_fold_struct_field<T: Folder>(f: StructField, fld: &mut T) -> StructField {}    }        span: fld.new_span(p.span),        trait_ref: fld.fold_trait_ref(p.trait_ref),        bound_lifetimes: fld.fold_lifetime_defs(p.bound_lifetimes),    ast::PolyTraitRef {pub fn noop_fold_poly_trait_ref<T: Folder>(p: PolyTraitRef, fld: &mut T) -> PolyTraitRef {}    }        ref_id: id,        path: fld.fold_path(path),    ast::TraitRef {    } = p;        ref_id: _,        path,    let TraitRef {    let id = fld.new_id(p.ref_id);pub fn noop_fold_trait_ref<T: Folder>(p: TraitRef, fld: &mut T) -> TraitRef {}    })        ctor_id: ctor_id.map(|cid| fld.new_id(cid)),        fields: fields.move_map(|f| fld.fold_struct_field(f)),    struct_def.map(|StructDef { fields, ctor_id }| StructDef {pub fn noop_fold_struct_def<T: Folder>(struct_def: P<StructDef>, fld: &mut T) -> P<StructDef> {}    }        }            })                span: fld.new_span(span)                ty:fld.fold_ty(ty),                path: fld.fold_path(path),                id: fld.new_id(id),            ast::WherePredicate::EqPredicate(ast::WhereEqPredicate{                                                               span}) => {                                                               ty,                                                               path,ad=�\����wG��h"�
�
�
U
B


��VL��o%�
�
�
�
h
"


�	�	�	s	J	%		��p7�����OIGF��fG���y4&��se5����|trq+��sJ ���            ConstImplItem(ty, expr) => {        node: match node  {        vis: vis,        attrs: fold_attrs(attrs, folder),        ident: folder.fold_ident(ident),        id: folder.new_id(id),    SmallVector::one(i.map(|ImplItem {id, ident, attrs, node, vis, span}| ImplItem {                                      -> SmallVector<P<ImplItem>> {pub fn noop_fold_impl_item<T: Folder>(i: P<ImplItem>, folder: &mut T)}    }))        span: folder.new_span(span)        },            }                              default.map(|x| folder.fold_ty(x)))                TypeTraitItem(folder.fold_bounds(bounds),            TypeTraitItem(bounds, default) => {            }                                body.map(|x| folder.fold_block(x)))                MethodTraitItem(noop_fold_method_sig(sig, folder),            MethodTraitItem(sig, body) => {            }                               default.map(|x| folder.fold_expr(x)))                ConstTraitItem(folder.fold_ty(ty),            ConstTraitItem(ty, default) => {        node: match node {        attrs: fold_attrs(attrs, folder),        ident: folder.fold_ident(ident),        id: folder.new_id(id),    SmallVector::one(i.map(|TraitItem {id, ident, attrs, node, span}| TraitItem {                                       -> SmallVector<P<TraitItem>> {pub fn noop_fold_trait_item<T: Folder>(i: P<TraitItem>, folder: &mut T)}    }        ItemMac(m) => ItemMac(folder.fold_mac(m)),        }                      items)                      bounds,                      folder.fold_generics(generics),            ItemTrait(unsafety,            }).collect();                folder.fold_trait_item(item).into_iter()            let items = items.into_iter().flat_map(|item| {            let bounds = folder.fold_bounds(bounds);        ItemTrait(unsafety, generics, bounds, items) => {        }                     new_impl_items)                     folder.fold_ty(ty),                     ifce,                     folder.fold_generics(generics),                     polarity,            ItemImpl(unsafety,            };                }                    Some(folder.fold_trait_ref((*trait_ref).clone()))                Some(ref trait_ref) => {                None => None,            let ifce = match ifce {            }).collect();                folder.fold_impl_item(item).into_iter()            let new_impl_items = impl_items.into_iter().flat_map(|item| {        ItemImpl(unsafety, polarity, generics, ifce, ty, impl_items) => {        }            ItemDefaultImpl(unsafety, folder.fold_trait_ref((*trait_ref).clone()))        ItemDefaultImpl(unsafety, ref trait_ref) => {        }            ItemStruct(struct_def, folder.fold_generics(generics))            let struct_def = folder.fold_struct_def(struct_def);        ItemStruct(struct_def, generics) => {        }                folder.fold_generics(generics))                },                    variants: enum_definition.variants.move_map(|x| folder.fold_variant(x)),                ast::EnumDef {            ItemEnum(        ItemEnum(enum_definition, generics) => {        }            ItemTy(folder.fold_ty(t), folder.fold_generics(generics))        ItemTy(t, generics) => {        ItemForeignMod(nm) => ItemForeignMod(folder.fold_foreign_mod(nm)),        ItemMod(m) => ItemMod(folder.fold_mod(m)),        }            )                folder.fold_block(body)                folder.fold_generics(generics),                abi,                constness,                unsafety,                folder.fold_fn_decl(decl),            ItemFn(ad�n��};��qfB:87�
�
�
Z
T
R
Q
���L�����J2�
�
c
*
�	�	�	�	�	~	c	J	C	B		�������q]WUT*����m���d����|{p`7
������Y����R����|q_;421��pub fn noop_fold_method_sig<T: Folder>(sig: MethodSig, folder: &mut T) -> MethodSig {}    })        span: folder.new_span(span)        vis: vis,        },            }                ForeignItemStatic(folder.fold_ty(t), m)            ForeignItemStatic(t, m) => {            }                ForeignItemFn(folder.fold_fn_decl(fdec), folder.fold_generics(generics))            ForeignItemFn(fdec, generics) => {        node: match node {        attrs: fold_attrs(attrs, folder),        ident: folder.fold_ident(ident),        id: folder.new_id(id),    ni.map(|ForeignItem {id, ident, attrs, node, span, vis}| ForeignItem {pub fn noop_fold_foreign_item<T: Folder>(ni: P<ForeignItem>, folder: &mut T) -> P<ForeignItem> {}    }        span: folder.new_span(span)        vis: vis,        node: node,        attrs: fold_attrs(attrs, folder),        ident: folder.fold_ident(ident),        id: id,    Item {    };        _ => ident        }            ast_util::impl_pretty_name(maybe_trait, Some(&**ty))        ItemImpl(_, _, _, ref maybe_trait, ref ty, _) => {        // The node may have changed, recompute the "pretty" impl name.    let ident = match node {    let node = folder.fold_item_underscore(node);    let id = folder.new_id(id);                                        folder: &mut T) -> Item {pub fn noop_fold_item_simple<T: Folder>(Item {id, ident, attrs, node, vis, span}: Item,// fold one item into exactly one item}    SmallVector::one(i.map(|i| folder.fold_item_simple(i)))pub fn noop_fold_item<T: Folder>(i: P<Item>, folder: &mut T) -> SmallVector<P<Item>> {// fold one item into possibly many items}    }        span: span,        exported_macros: exported_macros,        config: config,        attrs: attrs,        module: module,    Crate {    }        def.id = folder.new_id(def.id);    for def in &mut exported_macros {    };        }, vec![], span)            items: vec![],            inner: span,        None => (ast::Mod {        }            })                }                    _ => panic!("fold converted a module to not a module"),                    ast::ItemMod(m) => (m, attrs, span),                match node {            item.and_then(|ast::Item { attrs, span, node, .. }| {                    "a crate cannot expand to more than one item");            assert!(items.next().is_none(),        Some(item) => {    let (module, attrs, span) = match items.next() {    })).into_iter();        node: ast::ItemMod(module),        span: span,        vis: ast::Public,        id: ast::DUMMY_NODE_ID,        attrs: attrs,        ident: token::special_idents::invalid,    let mut items = folder.fold_item(P(ast::Item {    let config = folder.fold_meta_items(config);                                  folder: &mut T) -> Crate {pub fn noop_fold_crate<T: Folder>(Crate {module, attrs, config, mut exported_macros, span}: Crate,}    }        items: items.into_iter().flat_map(|x| folder.fold_item(x).into_iter()).collect(),        inner: folder.new_span(inner),    Mod {pub fn noop_fold_mod<T: Folder>(Mod {inner, items}: Mod, folder: &mut T) -> Mod {}    }))        span: folder.new_span(span)        },            MacImplItem(mac) => MacImplItem(folder.fold_mac(mac))            TypeImplItem(ty) => TypeImplItem(folder.fold_ty(ty)),            }                               folder.fold_block(body))                MethodImplItem(noop_fold_method_sig(sig, folder),            MethodImplItem(sig, body) => {            }                ConstImplItem(folder.fold_ty(ty), folder.fold_expr(expr))ad(�X���_?�����z[@�
�
~
9

���i��bT'�
�
�
V

�	�	u	a	9	+	��R0���n4�����ywv���n`@���|n ����R2��m_2����                          }                        folder.fold_expr(rhs))                        folder.fold_expr(lhs),                ExprBinary(binop,            ExprBinary(binop, lhs, rhs) => {            }                    args.move_map(|x| folder.fold_expr(x)))                    tps.move_map(|x| folder.fold_ty(x)),                    respan(folder.new_span(i.span), folder.fold_ident(i.node)),                ExprMethodCall(            ExprMethodCall(i, tps, args) => {            }                         args.move_map(|x| folder.fold_expr(x)))                ExprCall(folder.fold_expr(f),            ExprCall(f, args) => {            ExprTup(elts) => ExprTup(elts.move_map(|x| folder.fold_expr(x))),            }                ExprRepeat(folder.fold_expr(expr), folder.fold_expr(count))            ExprRepeat(expr, count) => {            }                ExprVec(exprs.move_map(|x| folder.fold_expr(x)))            ExprVec(exprs) => {            }                ExprBox(p.map(|e|folder.fold_expr(e)), folder.fold_expr(e))            ExprBox(p, e) => {        node: match node {        id: folder.new_id(id),    Expr {pub fn noop_fold_expr<T: Folder>(Expr {id, node, span}: Expr, folder: &mut T) -> Expr {}    })        span: folder.new_span(span)        },            PatMac(mac) => PatMac(folder.fold_mac(mac))            }                       after.move_map(|x| folder.fold_pat(x)))                       slice.map(|x| folder.fold_pat(x)),                PatVec(before.move_map(|x| folder.fold_pat(x)),            PatVec(before, slice, after) => {            },                PatRange(folder.fold_expr(e1), folder.fold_expr(e2))            PatRange(e1, e2) => {            PatRegion(inner, mutbl) => PatRegion(folder.fold_pat(inner), mutbl),            PatBox(inner) => PatBox(folder.fold_pat(inner)),            PatTup(elts) => PatTup(elts.move_map(|x| folder.fold_pat(x))),            }                PatStruct(pth, fs, etc)                });                              }}                                  is_shorthand: f.node.is_shorthand,                                  pat: folder.fold_pat(f.node.pat),                                  ident: f.node.ident,                              node: ast::FieldPat {                    Spanned { span: folder.new_span(f.span),                let fs = fields.move_map(|f| {                let pth = folder.fold_path(pth);            PatStruct(pth, fields, etc) => {            }                PatQPath(qself, folder.fold_path(pth))                let qself = QSelf {ty: folder.fold_ty(qself.ty), .. qself};            PatQPath(qself, pth) => {            }                        pats.map(|pats| pats.move_map(|x| folder.fold_pat(x))))                PatEnum(folder.fold_path(pth),            PatEnum(pth, pats) => {            PatLit(e) => PatLit(folder.fold_expr(e)),            }                        sub.map(|x| folder.fold_pat(x)))                                node: folder.fold_ident(pth1.node)},                        Spanned{span: folder.new_span(pth1.span),                PatIdent(binding_mode,            PatIdent(binding_mode, pth1, sub) => {            PatWild(k) => PatWild(k),        node: match node {        id: folder.new_id(id),    p.map(|Pat {id, node, span}| Pat {pub fn noop_fold_pat<T: Folder>(p: P<Pat>, folder: &mut T) -> P<Pat> {}    }        decl: folder.fold_fn_decl(sig.decl)        constness: sig.constness,        unsafety: sig.unsafety,        explicit_self: folder.fold_explicit_self(sig.explicit_self),        abi: sig.abi,        generics: folder.fold_generics(sig.generics),    MethodSig {ad!�U���mI���Y+�
�
�
�
U
$
���wD���Q�
�
�
\
(
�	�	�	u	C		���T4&���UG���cB���z<����P����d)���x\,�����            }                ExprPath(qself, folder.fold_path(path))                });                    }                        position: position                        ty: folder.fold_ty(ty),                    QSelf {                let qself = qself.map(|QSelf { ty, position }| {            ExprPath(qself, path) => {            }                          e2.map(|x| folder.fold_expr(x)))                ExprRange(e1.map(|x| folder.fold_expr(x)),            ExprRange(e1, e2) => {            }                ExprIndex(folder.fold_expr(el), folder.fold_expr(er))            ExprIndex(el, er) => {            }                                    folder.fold_usize(ident.node)))                             respan(folder.new_span(ident.span),                ExprTupField(folder.fold_expr(el),            ExprTupField(el, ident) => {            }                                 folder.fold_ident(ident.node)))                          respan(folder.new_span(ident.span),                ExprField(folder.fold_expr(el),            ExprField(el, ident) => {            }                            folder.fold_expr(er))                            folder.fold_expr(el),                ExprAssignOp(op,            ExprAssignOp(op, el, er) => {            }                ExprAssign(folder.fold_expr(el), folder.fold_expr(er))            ExprAssign(el, er) => {            ExprBlock(blk) => ExprBlock(folder.fold_block(blk)),            }                            folder.fold_block(body))                            folder.fold_fn_decl(decl),                ExprClosure(capture_clause,            ExprClosure(capture_clause, decl, body) => {            }                        source)                        arms.move_map(|x| folder.fold_arm(x)),                ExprMatch(folder.fold_expr(expr),            ExprMatch(expr, arms, source) => {            }                        opt_ident.map(|i| folder.fold_ident(i)))                ExprLoop(folder.fold_block(body),            ExprLoop(body, opt_ident) => {            }                            opt_ident.map(|i| folder.fold_ident(i)))                            folder.fold_block(body),                            folder.fold_expr(iter),                ExprForLoop(folder.fold_pat(pat),            ExprForLoop(pat, iter, body, opt_ident) => {            }                             opt_ident.map(|i| folder.fold_ident(i)))                             folder.fold_block(body),                             folder.fold_expr(expr),                ExprWhileLet(folder.fold_pat(pat),            ExprWhileLet(pat, expr, body, opt_ident) => {            }                          opt_ident.map(|i| folder.fold_ident(i)))                          folder.fold_block(body),                ExprWhile(folder.fold_expr(cond),            ExprWhile(cond, body, opt_ident) => {            }                          fl.map(|x| folder.fold_expr(x)))                          folder.fold_block(tr),                          folder.fold_expr(expr),                ExprIfLet(folder.fold_pat(pat),            ExprIfLet(pat, expr, tr, fl) => {            }                       fl.map(|x| folder.fold_expr(x)))                       folder.fold_block(tr),                ExprIf(folder.fold_expr(cond),            ExprIf(cond, tr, fl) => {            ExprAddrOf(m, ohs) => ExprAddrOf(m, folder.fold_expr(ohs)),            }                ExprCast(folder.fold_expr(expr), folder.fold_ty(ty))            ExprCast(expr, ty) => {            ExprLit(l) => ExprLit(l),            }                ExprUnary(binop, folder.fold_expr(ohs))            ExprUnary(binop, ohs) => {