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/ast.rsutf-8
3210#"! Utp|l}o�tXv�tBo�_%l�]�yM	��
wW���N
r�$@ad-9|�{XU��M)(�
�
�
�
t
T
<


����qYA&�����eN.�
�
�
�
�
o
R
<


�	�	�	�	w	V	U	%				����~l`_Q@���wB�������w-�������s8����|vtsX������d.(&%
����98            // IF YOU SEE ONE OF THESE FAILS: it means that you're comparing        } else {            self.name == other.name        if self.ctxt == other.ctxt {    fn eq(&self, other: &Ident) -> bool {impl PartialEq for Ident {}    }        fmt::Display::fmt(&token::get_name(*self), f)    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Display for Name {}    }        write!(f, "{:?}({})", token::get_name(*self), nm)        let Name(nm) = *self;    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Debug for Name {}    }        fmt::Display::fmt(&self.name, f)    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Display for Ident {}    }        write!(f, "{}#{}", self.name, self.ctxt)    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Debug for Ident {}    }        self.name.as_str()    pub fn as_str<'a>(&'a self) -> &'a str {    pub fn new(name: Name) -> Ident { Ident {name: name, ctxt: EMPTY_CTXT}}    /// Construct an identifier with the given name and an empty context:impl Ident {}    pub ctxt: SyntaxContext    pub name: Name,pub struct Ident {#[derive(Clone, Copy, Hash, PartialOrd, Eq, Ord)]/// That Work Together"/// macro expansion per Flatt et al., "Macros/// table) and a SyntaxContext to track renaming and/// An identifier contains a Name (index into the interner// by just "Name".// FIXME #6993: in librustc, uses of "ident" should be replaceduse serialize::{Encodable, Decodable, Encoder, Decoder};use std::rc::Rc;use std::fmt;use ptr::P;use parse::lexer;use parse::token;use parse::token::{InternedString, str_to_ident};use owned_slice::OwnedSlice;use ext::tt::macro_parser;use ext::base;use ast_util;use abi::Abi;use codemap::{Span, Spanned, DUMMY_SP, ExpnId};pub use self::PathParameters::*;pub use self::Visibility::*;pub use self::ViewPath_::*;pub use self::VariantKind::*;pub use self::UnsafeSource::*;pub use self::UnOp::*;pub use self::UintTy::*;pub use self::TyParamBound::*;pub use self::Ty_::*;pub use self::TraitItem_::*;pub use self::TokenTree::*;pub use self::StructFieldKind::*;pub use self::StrStyle::*;pub use self::Stmt_::*;pub use self::Sign::*;pub use self::PrimTy::*;pub use self::PatWildKind::*;pub use self::PathListItem_::*;pub use self::Pat_::*;pub use self::Mutability::*;pub use self::MetaItem_::*;pub use self::MacStmtStyle::*;pub use self::Mac_::*;pub use self::LocalSource::*;pub use self::LitIntType::*;pub use self::Lit_::*;pub use self::KleeneOp::*;pub use self::Item_::*;pub use self::IntTy::*;pub use self::InlinedItem::*;pub use self::ImplItem_::*;pub use self::ForeignItem_::*;pub use self::FunctionRetTy::*;pub use self::FloatTy::*;pub use self::Expr_::*;pub use self::ExplicitSelf_::*;pub use self::Decl_::*;pub use self::CaptureClause::*;pub use self::BlockCheckMode::*;pub use self::BinOp_::*;pub use self::BindingMode::*;pub use self::AttrStyle::*;pub use self::AsmDialect::*;// The Rust abstract syntax tree.// 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 COPYRIGHTadq$���S!���i�
�
�
�
�
m
R
+





��������J%}    }        assert_encodable::<Crate>();        fn assert_encodable<T: serialize::Encodable>() {}    fn check_asts_encodable() {    #[test]    // are ASTs encodable?    use super::*;    use serialize;mod tests {#[cfg(test)]}    pub body: Vec<TokenTree>,    pub allow_internal_unstable: bool,    pub use_locally: bool,    pub export: bool,    pub imported_from: Option<Ident>,    pub span: Span,    pub id: NodeId,    pub attrs: Vec<Attribute>,    pub ident: Ident,pub struct MacroDef {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// Not parsed directly, but created on macro import or `macro_rules!` expansion.////// A macro definition, in this crate or imported from another.}    IIForeign(P<ForeignItem>),    IIImplItem(DefId /* impl id */, P<ImplItem>),    IITraitItem(DefId /* impl id */, P<TraitItem>),    IIItem(P<Item>),pub enum InlinedItem {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]adCo�����gO���v'�
�
�
�
�
j
.
������\D����k3�
�
�
�
�
�
^
M
.

�	�	�	�	�	q	`	A	&		�����oXDBA���zxw$������o[F20/���oM2��~F>����.���W    /// `ExprMethod    /// `ExprMethodCall(foo, [Bar, Baz], [x, a, b, c, d])`.    /// Thus, `x.foo::<Bar, Baz>(a, b, c, d)` is represented as    ///    /// and the remaining elements are the rest of the arguments.    /// to the object on which the method is being called on (the receiver),    /// The first element of the vector of `Expr`s is the expression that evaluates    ///    /// (within the angle brackets).    /// The vector of `Ty`s are the ascripted type parameters for the method    /// The `SpannedIdent` is the identifier for the method name.    ///    /// A method call (`x.foo::<Bar, Baz>(a, b, c, d)`)    ExprCall(P<Expr>, Vec<P<Expr>>),    /// and the second field is the list of arguments    /// The first field resolves to the function itself,    ///    /// A function call    ExprVec(Vec<P<Expr>>),    /// An array (`[a, b, c, d]`)    ExprBox(Option<P<Expr>>, P<Expr>),    /// First expr is the place; second expr is the value.pub enum Expr_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub span: Span,    pub node: Expr_,    pub id: NodeId,pub struct Expr {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// An expression}    UserProvided,    CompilerGenerated,pub enum UnsafeSource {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    UnsafeBlock(UnsafeSource),    DefaultBlock,pub enum BlockCheckMode {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]pub type SpannedIdent = Spanned<Ident>;}    pub span: Span,    pub expr: P<Expr>,    pub ident: SpannedIdent,pub struct Field {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub body: P<Expr>,    pub guard: Option<P<Expr>>,    pub pats: Vec<P<Pat>>,    pub attrs: Vec<Attribute>,pub struct Arm {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// represents one arm of a 'match'}    DeclItem(P<Item>),    /// An item binding:    DeclLocal(P<Local>),    /// A local (let) binding:pub enum Decl_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]pub type Decl = Spanned<Decl_>;}    pub source: LocalSource,    pub span: Span,    pub id: NodeId,    pub init: Option<P<Expr>>,    /// Initializer expression to set the value, if any    pub ty: Option<P<Ty>>,    pub pat: P<Pat>,pub struct Local {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// Local represents a `let` statement, e.g., `let <pat>:<ty> = <expr>;`// a refinement on pat.// FIXME (pending discussion of #1697, #2178...): local should really be}    LocalFor,    LocalLet,pub enum LocalSource {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]/// ...;`, or one desugared from the pattern of a for loop./// Where a local declaration came from: either a true `let ... =}    MacStmtWithoutBraces,    /// expressions.    /// `foo!(...)`. All of these will end up being converted into macro    /// The macro statement had parentheses or brackets and no semicolon; e.g.    MacStmtWithBraces,    /// The macro statement had braces; e.g. foo! { ... }    MacStmtWithSemicolon,    /// `foo!(...);`, `foo![...];`    /// The macro statement had a trailing semicolon, e.g. `foo! { ... };`pub enum MacStmtStyle {#[derive(Clone, Copy, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    StmtMac(P<Mac>, MacStmtStyle),    StmtSemi(P<Expr>, NodeId),ad�_���M$����oQ�
�
�
y
E
=


��TL%��um<4�
�
\
1
)
�	�	�	l	!		���8���[?&%����f3
���}T3	���ldD����eG����~`_5����    /// For example, `Foo {x: 1, y: 2}`, or    ///    /// A struct literal expression.    ExprMac(Mac, token::DelimToken),    /// A macro invocation; pre-expansion    ExprInlineAsm(InlineAsm),    /// Output of the `asm!()` macro    ExprRet(Option<P<Expr>>),    /// A `return`, with an optional value to be returned    ExprAgain(Option<Ident>),    /// A `continue`, with an optional label    ExprBreak(Option<Ident>),    /// A `break`, with an optional label to break    ExprAddrOf(Mutability, P<Expr>),    /// A referencing operation (`&a` or `&mut a`)    ExprPath(Option<QSelf>, Path),    /// e.g. `<Vec<T> as SomeTrait>::SomeType`.    /// Optionally "qualified",    ///    /// parameters, e.g. foo::bar::<baz>.    /// Variable reference, possibly containing `::` and/or type    ExprRange(Option<P<Expr>>, Option<P<Expr>>),    /// A range (`1..2`, `1..`, or `..2`)    ExprIndex(P<Expr>, P<Expr>),    /// An indexing operation (`foo[2]`)    ExprTupField(P<Expr>, Spanned<usize>),    /// For example, `foo.0`.    ///    /// Access of an unnamed field of a struct or tuple-struct    ExprField(P<Expr>, SpannedIdent),    /// Access of a named struct field (`obj.foo`)    ExprAssignOp(BinOp, P<Expr>, P<Expr>),    /// For example, `a += 1`.    ///    /// An assignment with an operator    ExprAssign(P<Expr>, P<Expr>),    /// An assignment (`a = foo()`)    ExprBlock(P<Block>),    /// A block (`{ ... }`)    ExprClosure(CaptureClause, P<FnDecl>, P<Block>),    /// A closure (for example, `move |a, b, c| {a + b + c}`)    ExprMatch(P<Expr>, Vec<Arm>, MatchSource),    /// the result of a desugaring, and if so, which kind.    /// A `match` block, with a source that indicates whether or not it is    ExprLoop(P<Block>, Option<Ident>),    // FIXME #6993: change to Option<Name> ... or not, if these are hygienic.    /// `'label: loop { block }`    ///    /// Conditionless loop (can be exited with break, continue, or return)    ExprForLoop(P<Pat>, P<Expr>, P<Block>, Option<Ident>),    /// This is desugared to a combination of `loop` and `match` expressions.    ///    /// `'label: for pat in expr { block }`    ///    /// A for loop, with an optional label    // FIXME #6993: change to Option<Name> ... or not, if these are hygienic.    ExprWhileLet(P<Pat>, P<Expr>, P<Block>, Option<Ident>),    /// This is desugared to a combination of `loop` and `match` expressions.    ///    /// `'label: while let pat = expr { block }`    ///    /// A while-let loop, with an optional label    // FIXME #6993: change to Option<Name> ... or not, if these are hygienic.    ExprWhile(P<Expr>, P<Block>, Option<Ident>),    /// `'label: while expr { block }`    ///    /// A while loop, with an optional label    // FIXME #6993: change to Option<Name> ... or not, if these are hygienic.    ExprIfLet(P<Pat>, P<Expr>, P<Block>, Option<P<Expr>>),    /// This is desugared to a `match` expression.    ///    /// `if let pat = expr { block } else { expr }`    ///    /// An `if let` expression with an optional else block    ExprIf(P<Expr>, P<Block>, Option<P<Expr>>),    /// `if expr { block } else { expr }`    ///    /// An `if` block, with an optional else block    ExprCast(P<Expr>, P<Ty>),    /// A cast (`foo as f64`)    ExprLit(P<Lit>),    /// A literal (For example: `1u8`, `"foo"`)    ExprUnary(UnOp, P<Expr>),    /// A unary operation (For example: `!x`, `*x`)    ExprBinary(BinOp, P<Expr>, P<Expr>),    /// A binary operation (For example: `a + b`, `a * b`)    ExprTup(Vec<P<Expr>>),    /// A tuple (`(a, b, c ,d)`)    ExprMethodCall(SpannedIdent, Vec<P<Ty>>, Vec<P<Expr>>),ad"�l���IA����T=;:�
�
z
R
N

������6#�����N9%#"�
�
�
�
�
�
e


�	�	�	x	J	-	������nICB����|S ���}{zZ
����d�����;"������N��~4��/// LHS token tree against the provided token tree, and if it finds a/// If the syntax extension is an MBE macro, it will attempt to match its////// be passed to syntax extensions using a uniform type./// loose structure, such that all sorts of different AST-fragments can/// parses the arguments to the invocation as a token-tree. This is a very/// When the main rust parser encounters a syntax-extension invocation, it}    OneOrMore,    ZeroOrMore,pub enum KleeneOp {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]/// for token sequences./// A Kleene-style [repetition operator](http://en.wikipedia.org/wiki/Kleene_star)}    pub num_captures: usize,    /// The number of `MatchNt`s that appear in the sequence (and subsequences)    pub op: KleeneOp,    /// Whether the sequence can be repeated zero (*), or one or more times (+)    pub separator: Option<token::Token>,    /// The optional separator    pub tts: Vec<TokenTree>,    /// The sequence of token treespub struct SequenceRepetition {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// A sequence of token treesee}    }        TtToken(self.close_span, self.close_token())    pub fn close_tt(&self) -> TokenTree {    /// Returns the closing delimiter as a token tree.    }        TtToken(self.open_span, self.open_token())    pub fn open_tt(&self) -> TokenTree {    /// Returns the opening delimiter as a token tree.    }        token::CloseDelim(self.delim)    pub fn close_token(&self) -> token::Token {    /// Returns the closing delimiter as a token.    }        token::OpenDelim(self.delim)    pub fn open_token(&self) -> token::Token {    /// Returns the opening delimiter as a token.impl Delimited {}    pub close_span: Span,    /// The span covering the closing delimiter    pub tts: Vec<TokenTree>,    /// The delimited sequence of token trees    pub open_span: Span,    /// The span covering the opening delimiter    pub delim: token::DelimToken,    /// The type of delimiterpub struct Delimited {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// A delimited sequence of token trees}    CaptureByRef,    CaptureByValue,pub enum CaptureClause {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    ForLoopDesugar,    WhileLetDesugar,    IfLetDesugar { contains_else_clause: bool },    Normal,pub enum MatchSource {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    pub position: usize    pub ty: P<Ty>,pub struct QSelf {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]///      ty       position = 0///      ^~~~~    ^///     <Vec<T>>::AssociatedItem//////      ty        position = 3///      ^~~~~     ~~~~~~~~~~~~~~^///     <Vec<T> as a::b::Trait>::AssociatedItem////// item qualified with this Self type./// separately. `position` represents the index of the associated/// path, including the trait and the associated item, is stored/// The explicit Self type in a "qualified path". The actual}    ExprParen(P<Expr>)    /// No-op: used solely so we can pretty-print faithfully    ExprRepeat(P<Expr>, P<Expr>),    /// to be repeated; the second is the number of times to repeat it.    /// For example, `[1u8; 5]`. The first expression is the element    ///    /// A vector literal constructed from one repeated element.    ExprStruct(Path, Vec<Field>, Option<P<Expr>>),    /// `Foo {x: 1, .. base}`, where `base` is the `Option<Expr>`.adA�]�so%���kJ�
�
�
�
�
o
A
?
>
-

���\/	������zyC%�
�
�
x
D

�	�	\	&	����X8
����TF	�<
�wC����{m7-'&����Z0& ��a,��        let arg_rdr = lexer::new_tt_reader_with_doc_flag(&cx.parse_sess().span_diagnostic,        // `None` is because we're not interpolating                 -> macro_parser::NamedParseResult {    pub fn parse(cx: &base::ExtCtxt, mtch: &[TokenTree], tts: &[TokenTree])    /// Use this token tree as a matcher to parse given tts.    }        }            TtSequence(span, _)  => span,            TtDelimited(span, _) => span,            TtToken(span, _)     => span,        match *self {    pub fn get_span(&self) -> Span {    /// Returns the `Span` corresponding to this token tree.    }        }            _ => panic!("Cannot expand a token tree")            }                seq.tts[index].clone()            (&TtSequence(_, ref seq), _) => {            }                v[index].clone()                         TtToken(sp, token::Ident(kind, kind_st))];                         TtToken(sp, token::Colon),                let v = [TtToken(sp, token::SubstNt(name, name_st)),            (&TtToken(sp, token::MatchNt(name, kind, name_st, kind_st)), _) => {            }                v[index].clone()                                                  token::Plain))];                         TtToken(sp, token::Ident(token::str_to_ident(var.as_str()),                let v = [TtToken(sp, token::Dollar),            (&TtToken(sp, token::SpecialVarNt(var)), _) => {            }                delimed.tts[index - 1].clone()                }                    return delimed.close_tt();                if index == delimed.tts.len() + 1 {                }                    return delimed.open_tt();                if index == 0 {            (&TtDelimited(_, ref delimed), _) => {            }                }))                    close_span: sp,                              TtToken(sp, token::Literal(token::Str_(name), None))],                              TtToken(sp, token::Eq),                                                       token::Plain)),                    tts: vec![TtToken(sp, token::Ident(token::str_to_ident("doc"),                    open_span: sp,                    delim: token::Bracket,                TtDelimited(sp, Rc::new(Delimited {            (&TtToken(sp, token::DocComment(name)), 1) => {            }                TtToken(sp, token::Pound)            (&TtToken(sp, token::DocComment(_)), 0) => {        match (self, index) {    pub fn get_tt(&self, index: usize) -> TokenTree {    }        }            TtToken(..) => 0            }                seq.tts.len()            TtSequence(_, ref seq) => {            }                delimed.tts.len() + 2            TtDelimited(_, ref delimed) => {            TtToken(_, token::MatchNt(..)) => 3,            TtToken(_, token::SpecialVarNt(..)) => 2,            TtToken(_, token::DocComment(_)) => 2,        match *self {    pub fn len(&self) -> usize {impl TokenTree {}    TtSequence(Span, Rc<SequenceRepetition>),    // FIXME(eddyb) #12938 Use DST.    /// A kleene-style repetition sequence with a span    // This only makes sense in MBE macros.    TtDelimited(Span, Rc<Delimited>),    /// A delimited sequence of token trees    TtToken(Span, token::Token),    /// A single tokenpub enum TokenTree {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// Nothing special happens to misnamed or misplaced `SubstNt`s./// The RHS of an MBE macro is the only place `SubstNt`s are substituted.////// macro_parser::matched_nonterminals into the `SubstNt`s it finds./// match, will transcribe the RHS token tree, splicing in any capturedady��*�����}|:�
�
�
�
:
*
��ged�����dRPOA#"�
�
�
�
�
�
�
q
`
Z
X
W
C
'
%

�	�	�	o	e	\	Z	&	%	����fdcQ)����{yx+����xgC0
���`8	��D1���s_]\ ���eS:    pub generics: Generics,    pub decl: P<FnDecl>,    pub abi: Abi,    pub constness: Constness,    pub unsafety: Unsafety,pub struct MethodSig {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// or in an implementation./// Represents a method's signature in a trait declaration,}    pub span: Span,    pub mt: MutTy,    pub ident: Ident,pub struct TypeField {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub mutbl: Mutability,    pub ty: P<Ty>,pub struct MutTy {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]// type structure in middle/ty.rs as well.// NB: If you change this, you'll probably want to change the corresponding}    LitBool(bool),    /// A boolean literal    LitFloatUnsuffixed(InternedString),    /// A float literal without a suffix (`1.0 or 1.0E10`)    LitFloat(InternedString, FloatTy),    /// A float literal (`1f64` or `1E10f64`)    LitInt(u64, LitIntType),    /// An integer literal (`1u8`)    LitChar(char),    /// A character literal (`'a'`)    LitByte(u8),    /// A byte char (`b'f'`)    LitBinary(Rc<Vec<u8>>),    /// A byte string (`b"foo"`)    LitStr(InternedString, StrStyle),    /// A string literal (`"foo"`)pub enum Lit_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    }        }            UnsignedIntLit(u) => u.suffix_len()            SignedIntLit(s, _) => s.suffix_len(),            UnsuffixedIntLit(_) => 0,        match *self {    pub fn suffix_len(&self) -> usize {impl LitIntType {}    UnsuffixedIntLit(Sign)    UnsignedIntLit(UintTy),    SignedIntLit(IntTy, Sign),pub enum LitIntType {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]doit! { i8 i16 i32 i64 isize u8 u16 u32 u64 usize }}    })*)        }            if *self < 0 {Minus} else {Plus}        fn sign(&self) -> Sign {        #[allow(unused_comparisons)]    ($($t:ident)*) => ($(impl IntSign for $t {macro_rules! doit {}    fn sign(&self) -> Sign;pub trait IntSign {}    }        n.sign()    pub fn new<T: IntSign>(n: T) -> Sign {impl Sign {}    Plus    Minus,pub enum Sign {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]pub type Lit = Spanned<Lit_>;/// A literal}    RawStr(usize)    /// The uint is the number of `#` symbols used    ///    /// A raw string, like `r##"foo"##`    CookedStr,    /// A regular string, like `"foo"`pub enum StrStyle {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    MacInvocTT(Path, Vec<TokenTree>, SyntaxContext),   // new macro-invocation    // stored in the enclosing item. Oog.    // NB: the additional ident for a macro_rules-style macro is actuallypub enum Mac_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// There's only one flavor, now, so this could presumably be simplified.////// of the macro invocation./// is being invoked, and the vector of token-trees contains the source/// Represents a macro invocation. The Path indicates which macropub type Mac = Spanned<Mac_>;}    }        macro_parser::parse(cx.parse_sess(), cx.cfg(), arg_rdr, mtch)                                                         true);                                                         tts.iter().cloned().collect(),                                                         None,                                                         None,ad}�����>���iU? �
�
�
�
�
`
.
������mT5���W>(&%�
�
�
�
�
�
�
�
�
t
9




�	�	s	m	k	j	]	5			�����yg]SH=20/!��������l1��ica`������lfdcC������u;1+)(���iVB@?>�����~}|}    pub span: Span,    pub node: Ty_,    pub id: NodeId,pub struct Ty {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]// NB PartialEq method appears below.}    pub span: Span,    pub ty: P<Ty>,    pub ident: Ident,    pub id: NodeId,pub struct TypeBinding {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]// Bind a type to an associated type: `A=Foo`.}    }        }            TyF32 | TyF64 => 3, // add F128 handling here        match *self {    pub fn suffix_len(&self) -> usize {impl FloatTy {}    }        write!(f, "{}", ast_util::float_ty_to_string(*self))    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Display for FloatTy {}    }        fmt::Display::fmt(self, f)    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Debug for FloatTy {}    TyF64,    TyF32,pub enum FloatTy {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Copy)]}    }        write!(f, "{}", ast_util::uint_ty_to_string(*self, None))    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Display for UintTy {}    }        fmt::Display::fmt(self, f)    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Debug for UintTy {}    }        }            TyU16 | TyU32 | TyU64  => 3,            TyUs | TyU8 => 2,        match *self {    pub fn suffix_len(&self) -> usize {impl UintTy {}    TyU64,    TyU32,    TyU16,    TyU8,    TyUs,pub enum UintTy {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Copy)]}    }        }            TyI16 | TyI32 | TyI64  => 3,            TyIs | TyI8 => 2,        match *self {    pub fn suffix_len(&self) -> usize {impl IntTy {}    }        write!(f, "{}", ast_util::int_ty_to_string(*self, None))    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Display for IntTy {}    }        fmt::Display::fmt(self, f)    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Debug for IntTy {}    TyI64,    TyI32,    TyI16,    TyI8,    TyIs,pub enum IntTy {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Copy)]}    MacImplItem(Mac),    TypeImplItem(P<Ty>),    MethodImplItem(MethodSig, P<Block>),    ConstImplItem(P<Ty>, P<Expr>),pub enum ImplItem_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub span: Span,    pub node: ImplItem_,    pub attrs: Vec<Attribute>,    pub vis: Visibility,    pub ident: Ident,    pub id: NodeId,pub struct ImplItem {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    TypeTraitItem(TyParamBounds, Option<P<Ty>>),    MethodTraitItem(MethodSig, Option<P<Block>>),    ConstTraitItem(P<Ty>, Option<P<Expr>>),pub enum TraitItem_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub span: Span,    pub node: TraitItem_,    pub attrs: Vec<Attribute>,    pub ident: Ident,    pub id: NodeId,pub struct TraitItem {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// has a default implementation)./// doesn't have an implementation, just a signature) or provided (meaning it/// a default implementation A trait method is either required (meaning it/// Represents a method declaration in a trait declaration, possibly including}    pub explicit_self: ExplicitSelf,adw�]K9%������kY4�
�
�
o
G
!
����[@���O.�
�
�
v
4
 
	
�	�	o	b	`	_		������vY8���x[B@?����usrg���{X9	���m]?5/-,���nO865������`K@20/
impl fmt::Display for Unsafety {}    NotConst,    Const,pub enum Constness {#[derive(Copy, Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    Normal,    Unsafe,pub enum Unsafety {#[derive(Copy, Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub variadic: bool    pub output: FunctionRetTy,    pub inputs: Vec<Arg>,pub struct FnDecl {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// Represents the header (not the body) of a function declaration}    }        }            id: DUMMY_NODE_ID            }),                span: span                node: PatIdent(BindByValue(mutability), path, None),                id: DUMMY_NODE_ID,            pat: P(Pat {            }),                span: DUMMY_SP,                node: TyInfer,                id: DUMMY_NODE_ID,            ty: P(Ty {            // HACK(eddyb) fake type for the self argument.        Arg {        let path = Spanned{span:span,node:self_ident};    pub fn new_self(span: Span, mutability: Mutability, self_ident: Ident) -> Arg {impl Arg {}    pub id: NodeId,    pub pat: P<Pat>,    pub ty: P<Ty>,pub struct Arg {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// represents an argument in a function header}    pub expn_id: ExpnId,    pub dialect: AsmDialect,    pub alignstack: bool,    pub volatile: bool,    pub clobbers: Vec<InternedString>,    pub inputs: Vec<(InternedString, P<Expr>)>,    pub outputs: Vec<(InternedString, P<Expr>, bool)>,    pub asm_str_style: StrStyle,    pub asm: InternedString,pub struct InlineAsm {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    AsmIntel    AsmAtt,pub enum AsmDialect {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    TyInfer,    /// specified. This can appear anywhere in a type.    /// TyInfer means the type should be inferred instead of it having been    TyTypeof(P<Expr>),    /// Unused for now    TyParen(P<Ty>),    /// No-op; kept solely so that we can pretty-print faithfully    TyPolyTraitRef(TyParamBounds),    /// A type like `for<'a> Foo<&'a Bar>`    TyObjectSum(P<Ty>, TyParamBounds),    /// Something like `A+B`. Note that `B` must always be a path.    TyPath(Option<QSelf>, Path),    /// Type parameters are stored in the Path itself    ///    /// "qualified", e.g. `<Vec<T> as SomeTrait>::SomeType`.    /// A path (`module::module::...::Type`), optionally    TyTup(Vec<P<Ty>> ),    /// A tuple (`(A, B, C, D,...)`)    TyBareFn(P<BareFnTy>),    /// A bare function (e.g. `fn(usize) -> bool`)    TyRptr(Option<Lifetime>, MutTy),    /// A reference (`&'a T` or `&'a mut T`)    TyPtr(MutTy),    /// A raw pointer (`*const T` or `*mut T`)    TyFixedLengthVec(P<Ty>, P<Expr>),    /// A fixed length array (`[T; n]`)    TyVec(P<Ty>),pub enum Ty_ {/// The different kinds of types recognized by the compiler#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub decl: P<FnDecl>    pub lifetimes: Vec<LifetimeDef>,    pub abi: Abi,    pub unsafety: Unsafety,pub struct BareFnTy {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    TyChar    TyBool,    TyStr,    TyFloat(FloatTy),    TyUint(UintTy),    TyInt(IntTy),pub enum PrimTy {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]/// Not represented directly in the AST, referred to by name through a ty_path.ad���sI;532�����usrO�
�
�
�
|
z
y
x
+

���e]7�������xWA�
�
�
�
�
�
�
3



�	�	�	�	{	f	F	D	C			��j'�����u]K'%$������H1	�����=(���kP<������V=������`VPNMpub type PathListItem = Spanned<PathListItem_>;}    }        }            PathListIdent { id, .. } | PathListMod { id } => id        match *self {    pub fn id(&self) -> NodeId {impl PathListItem_ {}    PathListMod { id: NodeId }    PathListIdent { name: Ident, id: NodeId },pub enum PathListItem_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]pub type Variant = Spanned<Variant_>;}    pub vis: Visibility,    pub disr_expr: Option<P<Expr>>,    /// Explicit discriminant, eg `Foo = 1`    pub id: NodeId,    pub kind: VariantKind,    pub attrs: Vec<Attribute>,    pub name: Ident,pub struct Variant_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub variants: Vec<P<Variant>>,pub struct EnumDef {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    StructVariantKind(P<StructDef>),    /// Struct variant, e.g. `Foo {x: A, y: B}`    TupleVariantKind(Vec<VariantArg>),    /// Tuple variant, e.g. `Foo(A, B)`pub enum VariantKind {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub id: NodeId,    pub ty: P<Ty>,pub struct VariantArg {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub items: Vec<P<ForeignItem>>,    pub abi: Abi,pub struct ForeignMod {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub items: Vec<P<Item>>,    pub inner: Span,    /// to the last token in the external file.    /// For `mod foo;`, the inner span ranges from the first token    /// A span from the first token past `{` to the last token until `}`.pub struct Mod {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]pub type ExplicitSelf = Spanned<ExplicitSelf_>;}    SelfExplicit(P<Ty>, Ident),    /// `self: TYPE`    SelfRegion(Option<Lifetime>, Mutability, Ident),    /// `&'lt self`, `&'lt mut self`    SelfValue(Ident),    /// `self`    SelfStatic,    /// No selfpub enum ExplicitSelf_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// Represents the kind of 'self' associated with a method}    }        }            Return(ref ty) => ty.span            DefaultReturn(span) => span,            NoReturn(span) => span,        match *self {    pub fn span(&self) -> Span {impl FunctionRetTy {}    Return(P<Ty>),    /// Everything else    DefaultReturn(Span),    /// type would be inserted.    /// closures default to inference. Span points to where return    /// Functions default to `()` and    ///    /// Return type is not specified.    NoReturn(Span),    /// raise an error or exit (i.e. never return to the caller)    /// Functions with return type `!`that alwayspub enum FunctionRetTy {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    }        }            ImplPolarity::Negative => "negative".fmt(f),            ImplPolarity::Positive => "positive".fmt(f),        match *self {    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {impl fmt::Debug for ImplPolarity {}    Negative,    /// `impl !Trait for Type`    Positive,    /// `impl Trait for Type`pub enum ImplPolarity {#[derive(Copy, Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash)]}    }        }, f)            Unsafety::Unsafe => "unsafe",            Unsafety::Normal => "normal",        fmt::Display::fmt(match *self {    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {ad*F�����tsSK;3�������\ZY3	�
r
K
������oQP���qU754�
x
-

�	�	�	}	{	z	-		����vua_^������wb5��kX976"���|rlji;:����dbaJ#
������bK(������FE  FIXME (#3300): Should allow items to be anonymous. Right now/*}    pub ctor_id: Option<NodeId>,    /// structs.    /// ID of the constructor. This is only used for tuple- or enum-like    pub fields: Vec<StructField>,    /// Fields, not including ctorpub struct StructDef {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    }        }            NamedField(..) => false,            UnnamedField(..) => true,        match *self {    pub fn is_unnamed(&self) -> bool {impl StructFieldKind {}    UnnamedField(Visibility),    /// Element of a tuple-like struct    NamedField(Ident, Visibility),pub enum StructFieldKind {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]pub type StructField = Spanned<StructField_>;}    }        }            UnnamedField(_) => None            NamedField(ref ident, _) => Some(ident.clone()),        match self.kind {    pub fn ident(&self) -> Option<Ident> {impl StructField_ {}    pub attrs: Vec<Attribute>,    pub ty: P<Ty>,    pub id: NodeId,    pub kind: StructFieldKind,pub struct StructField_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    }        }            &Public => *self            &Inherited => parent_visibility,        match self {    pub fn inherit_from(&self, parent_visibility: Visibility) -> Visibility {impl Visibility {}    Inherited,    Public,pub enum Visibility {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    pub span: Span,    pub trait_ref: TraitRef,    /// The `Foo<&'a T>` in `<'a> Foo<&'a T>`    pub bound_lifetimes: Vec<LifetimeDef>,    /// The `'a` in `<'a> Foo<&'a T>`pub struct PolyTraitRef {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub ref_id: NodeId,    pub path: Path,pub struct TraitRef {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// same as the impl's node id)./// If this impl is an ItemImpl, the impl_id is redundant (it could be the/// that the ref_id is for. The impl_id maps to the "self type" of this impl./// resolve maps each TraitRef's ref_id to its defining trait; that's all////// TraitRef's appear in impls.}    pub is_sugared_doc: bool,    pub value: P<MetaItem>,    pub style: AttrStyle,    pub id: AttrId,pub struct Attribute_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// Doc-comments are promoted to attributes that have is_sugared_doc = truepub struct AttrId(pub usize);#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    AttrInner,    AttrOuter,pub enum AttrStyle {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]/// distinguished for pretty-printing./// are contained as statements within items. These two cases need to be/// Distinguishes between Attributes that decorate items and Attributes thatpub type Attribute = Spanned<Attribute_>;/// Meta-data associated with an item}    ViewPathList(Path, Vec<PathListItem>)    /// `foo::bar::{a,b,c}`    ViewPathGlob(Path),    /// `foo::bar::*`    ViewPathSimple(Ident, Path),    /// `foo::bar::baz` (with `as baz` implicitly on the right)    ///    /// or just    ///    /// `foo::bar::baz as quux`pub enum ViewPath_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]pub type ViewPath = Spanned<ViewPath_>;ad8r�����7%�������J9�
�
�
�
i
O
N
6


���p_M2���e,�
�
�
�
n
m
H
@
"
�	�	�	�	s	+		������`J���tO����gL"���tXD0���oG������fP�����~//// that we trans./// that we trans./// part of the AST that we parse from a file, but it becomes part of the tree/// The data we save and restore about an inlined item or method.  This is not}    }        }            ForeignItemStatic(..) => "foreign static item"            ForeignItemFn(..) => "foreign function",        match *self {    pub fn descriptive_variant(&self) -> &str {impl ForeignItem_ {}    ForeignItemStatic(P<Ty>, bool),    /// (the boolean is true when mutable)    /// A foreign static item (`static ext: u8`), with optional mutability    ForeignItemFn(P<FnDecl>, Generics),    /// A foreign functionpub enum ForeignItem_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// An item within an `extern` block}    pub vis: Visibility,    pub span: Span,    pub id: NodeId,    pub node: ForeignItem_,    pub attrs: Vec<Attribute>,    pub ident: Ident,pub struct ForeignItem {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    }        }            ItemDefaultImpl(..) => "item"            ItemImpl(..) |            ItemMac(..) |            ItemTrait(..) => "trait",            ItemStruct(..) => "struct",            ItemEnum(..) => "enum",            ItemTy(..) => "type alias",            ItemForeignMod(..) => "foreign module",            ItemMod(..) => "module",            ItemFn(..) => "function",            ItemConst(..) => "constant item",            ItemStatic(..) => "static item",            ItemUse(..) => "use",            ItemExternCrate(..) => "extern crate",        match *self {    pub fn descriptive_variant(&self) -> &str {impl Item_ {}    ItemMac(Mac),    /// A macro invocation (which includes macro definition)             Vec<P<ImplItem>>),             P<Ty>, // self             Option<TraitRef>, // (optional) trait this impl implements             Generics,             ImplPolarity,    ItemImpl(Unsafety,    /// An implementation, eg `impl<A> Trait for Foo { .. }`    ItemDefaultImpl(Unsafety, TraitRef),    // `impl Trait for .. {}`    ///    // Default trait implementations              Vec<P<TraitItem>>),              TyParamBounds,              Generics,    ItemTrait(Unsafety,    /// Represents a Trait Declaration    ItemStruct(P<StructDef>, Generics),    /// A struct definition, e.g. `struct Foo<A> {x: A}`    ItemEnum(EnumDef, Generics),    /// An enum definition, e.g. `enum Foo<A, B> {C<A>, D<B>}`    ItemTy(P<Ty>, Generics),    /// A type alias, e.g. `type Foo = Bar<u8>`    ItemForeignMod(ForeignMod),    /// An external module    ItemMod(Mod),    /// A module    ItemFn(P<FnDecl>, Unsafety, Constness, Abi, Generics, P<Block>),    /// A function declaration    ItemConst(P<Ty>, P<Expr>),    /// A `const` item    ItemStatic(P<Ty>, Mutability, P<Expr>),    /// A `static` item    ItemUse(P<ViewPath>),    /// A `use` or `pub use` item    ItemExternCrate(Option<Name>),    /// e.g. `extern crate foo` or `extern crate foo_bar as foo`    ///    /// An`extern crate` item, with optional original crate name,pub enum Item_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub span: Span,    pub vis: Visibility,    pub node: Item_,    pub id: NodeId,    pub attrs: Vec<Attribute>,    pub ident: Ident,pub struct Item {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// The name might be a dummy name in case of anonymous items////// An item */  we just use dummy names for anon items.ad�l�_���F�
�
C
��������g0 ��{?�
�
�
�
�
_
3
2
�	�	�	`	F	E	9		��h^XW4�������dPO4������[)#! ����nXD0���kMKJ��=+���M)'&��/// types./// A segment of a path: an identifier, an optional lifetime, and a set of}    pub segments: Vec<PathSegment>,    /// The segments in the path: the things separated by `::`.    pub global: bool,    /// module (like paths in an import).    /// A `::foo` path, is relative to the crate root rather than current    pub span: Span,pub struct Path {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// along with a bunch of supporting information./// std::cmp::PartialEq  .  It's represented as a sequence of identifiers,/// A "Path" is essentially Rust's notion of a name; for instance:}    pub bounds: Vec<Lifetime>    pub lifetime: Lifetime,pub struct LifetimeDef {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// A lifetime definition, eg `'a: 'b+'c+'d`}    pub name: Name    pub span: Span,    pub id: NodeId,pub struct Lifetime {           Debug, Copy)]#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash,pub type FnIdent = Option<Ident>;/// Function name (not all functions have names)}    }        Ok(str_to_ident(&try!(d.read_str())[..]))    fn decode<D: Decoder>(d: &mut D) -> Result<Ident, D::Error> {impl Decodable for Ident {}    }        s.emit_str(&token::get_ident(*self))    fn encode<S: Encoder>(&self, s: &mut S) -> Result<(), S::Error> {impl Encodable for Ident {pub type Mrk = u32;/// A mark represents a unique id associated with a macro expansion}    }        Ident { name: *self, ctxt: 0 }    pub fn ident(&self) -> Ident {    }        nm as usize        let Name(nm) = *self;    pub fn usize(&self) -> usize {    }        }            ::std::mem::transmute::<&str,&str>(&token::get_name(*self))            // FIXME #12938: can't use copy_lifetime since &str isn't a &T        unsafe {    pub fn as_str<'a>(&'a self) -> &'a str {impl Name {pub struct Name(pub u32);           RustcEncodable, RustcDecodable, Clone, Copy)]#[derive(Eq, Ord, PartialEq, PartialOrd, Hash,/// the result of interning./// A name is a part of an identifier, representing a string or gensym. It'spub const ILLEGAL_CTXT : SyntaxContext = 1;pub const EMPTY_CTXT : SyntaxContext = 0;pub type SyntaxContext = u32;// storage.// this uint is a reference to a table stored in thread-local// syntax context.// the special uint '0' will be used to indicate an empty// and also perhaps to save some work in destructor checks.// that's causing unreleased memory to cause core dumps// a table, in order to work around a compiler bug// I'm representing this syntax context as an index into/// a fresh u32/// and renamings. Each macro expansion corresponds to/// A SyntaxContext represents a chain of macro-expandings}    }        ! self.eq(other)    fn ne(&self, other: &Ident) -> bool {    }        }                   Probably related to issue \\#6993", self, other);            panic!("not allowed to compare these idents: {}, {}. \            //      syntax::ext::tt::macro_parser::token_name_eq            //      syntax::parse::token::Token::mtwt_eq            // one example and its non-hygienic counterpart would be:            // On the other hand, if the comparison does need to be hygienic,            //            // with Name's.            // 'name' fields of the idents. Or, even better, replace the idents            // if it should be non-hygienic (most things are), just compare the            // knowing whether the comparison should be hygienic or non-hygienic.            // idents that have different contexts. You can't fix this withoutad&�o��eJI�;&�
�
�
^
#
�����|=������z76�
�
�
�
�

U
?
�	�	�	�	�	�	s	)	�����W.���wT%������m=/������~J
��������;��zX�����~'!��/// A path like `Foo(A,B) -> C`}    }        self.lifetimes.is_empty() && self.types.is_empty() && self.bindings.is_empty()    fn is_empty(&self) -> bool {impl AngleBracketedParameterData {}    pub bindings: OwnedSlice<P<TypeBinding>>,    /// E.g., `Foo<A=Bar>`.    /// Bindings (equality constraints) on associated types, if present.    pub types: OwnedSlice<P<Ty>>,    /// The type parameters for this path segment, if present.    pub lifetimes: Vec<Lifetime>,    /// The lifetime parameters for this path segment.pub struct AngleBracketedParameterData {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// A path like `Foo<'a, T>`}    }        }            }                Vec::new()            ParenthesizedParameters(_) => {            }                data.bindings.iter().collect()            AngleBracketedParameters(ref data) => {        match *self {    pub fn bindings(&self) -> Vec<&P<TypeBinding>> {    }        }            }                Vec::new()            ParenthesizedParameters(_) => {            }                data.lifetimes.iter().collect()            AngleBracketedParameters(ref data) => {        match *self {    pub fn lifetimes(&self) -> Vec<&Lifetime> {    }        }            }                    .collect()                    .chain(data.output.iter())                data.inputs.iter()            ParenthesizedParameters(ref data) => {            }                data.types.iter().collect()            AngleBracketedParameters(ref data) => {        match *self {    pub fn types(&self) -> Vec<&P<Ty>> {    /// parameters in the parenthesized case.    /// Returns the types that the user wrote. Note that these do not necessarily map to the type    }        }            ParenthesizedParameters(..) => true,            AngleBracketedParameters(ref data) => !data.types.is_empty(),        match *self {    pub fn has_types(&self) -> bool {    }        }            ParenthesizedParameters(_) => false,            AngleBracketedParameters(ref data) => !data.lifetimes.is_empty(),        match *self {    pub fn has_lifetimes(&self) -> bool {    }        }            ParenthesizedParameters(..) => false,            // `X()` is equivalent to `X<(),()>`.            // Even if the user supplied no types, something like            AngleBracketedParameters(ref data) => data.is_empty(),        match *self {    pub fn is_empty(&self) -> bool {    }        })            bindings: OwnedSlice::empty(),            types: OwnedSlice::empty(),            lifetimes: Vec::new(),        AngleBracketedParameters(AngleBracketedParameterData {    pub fn none() -> PathParameters {impl PathParameters {}    ParenthesizedParameters(ParenthesizedParameterData),    /// The `(A,B)` and `C` in `Foo(A,B) -> C`    AngleBracketedParameters(AngleBracketedParameterData),    /// The `<'a, A,B,C>` in `foo::bar::baz::<'a, A,B,C>`pub enum PathParameters {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub parameters: PathParameters,    /// distinction.    /// parens affects the region binding rules, so we preserve the    /// this is more than just simple syntactic sugar; the use of    /// two flavors: `Path<A,B,C>` and `Path(A,B) -> C`. Note that    /// Type/lifetime parameters attached to this path. They come in    pub identifier: Ident,    /// The identifier portion of this path segment.pub struct PathSegment {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]ad	�t��vbaQ54(	�����eR9#! �
�
z
h
b
`
_

����W����[�
�
�
]
<
:
9
�	�	Q	3	)				����o[<	��M7������a[)�����b������D*���oC!��~j?��    /// The type being bounded    pub bound_lifetimes: Vec<LifetimeDef>,    /// Any lifetimes from a `for` binding    pub span: Span,pub struct WhereBoundPredicate {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// A type bound, eg `for<'c> Foo: Send+Clone+'c`}    EqPredicate(WhereEqPredicate)    /// An equality predicate (unsupported)    RegionPredicate(WhereRegionPredicate),    /// A lifetime predicate, e.g. `'a: 'b+'c`    BoundPredicate(WhereBoundPredicate),    /// A type binding, eg `for<'c> Foo: Send+Clone+'c`pub enum WherePredicate {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// A single predicate in a `where` clause}    pub predicates: Vec<WherePredicate>,    pub id: NodeId,pub struct WhereClause {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// A `where` clause in a definition}    }        self.is_lt_parameterized() || self.is_type_parameterized()    pub fn is_parameterized(&self) -> bool {    }        !self.ty_params.is_empty()    pub fn is_type_parameterized(&self) -> bool {    }        !self.lifetimes.is_empty()    pub fn is_lt_parameterized(&self) -> bool {impl Generics {}    pub where_clause: WhereClause,    pub ty_params: OwnedSlice<TyParam>,    pub lifetimes: Vec<LifetimeDef>,pub struct Generics {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// of a function, enum, trait, etc./// Represents lifetimes and type parameters attached to a declaration}    pub span: Span    pub default: Option<P<Ty>>,    pub bounds: TyParamBounds,    pub id: NodeId,    pub ident: Ident,pub struct TyParam {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]pub type TyParamBounds = OwnedSlice<TyParamBound>;}    Maybe,    None,pub enum TraitBoundModifier {#[derive(Copy, Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// modifier is `Maybe`. Negative bounds should also be handled here./// A modifier on a bound, currently this is only used for `?Sized`, where the}    RegionTyParamBound(Lifetime)    TraitTyParamBound(PolyTraitRef, TraitBoundModifier),pub enum TyParamBound {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// detects Copy, Send and Sync./// the "special" built-in traits (see middle::lang_items) and/// typeck::collect::compute_bounds matches these against/// The AST represents all type param bounds as types.pub const DUMMY_NODE_ID: NodeId = !0;/// small, positive ids./// node value. Then later, in the renumber pass, we renumber them to have/// When parsing and doing expansions, we initially give all AST nodes this ASTpub const CRATE_NODE_ID: NodeId = 0;pub const LOCAL_CRATE: CrateNum = 0;/// LOCAL_CRATE in their DefId./// Item definitions in the currently-compiled crate would have the CrateNum}    }        self.node        assert_eq!(self.krate, LOCAL_CRATE);    pub fn local_id(&self) -> NodeId {    /// Read the node id, asserting that this def-id is krate-local.impl DefId {}    pub node: NodeId,    pub krate: CrateNum,pub struct DefId {           RustcDecodable, Hash, Debug, Copy)]#[derive(Clone, Eq, Ord, PartialOrd, PartialEq, RustcEncodable,pub type NodeId = u32;pub type CrateNum = u32;}    pub output: Option<P<Ty>>,    /// `C`    pub inputs: Vec<P<Ty>>,    /// `(A,B)`    pub span: Span,    /// Overall spanpub struct ParenthesizedParameterData {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]adL@v����T������]�
�
�
�
�
�
�
Q
'
�����hK7
����n>�
�
|
f
7

�	�	�	j	1			���l������|iK.���lM976�������rn0���qL6����~gL/-,�����UCA@?}    PatWildMulti,    /// Represents the wildcard pattern `..`    PatWildSingle,    /// Represents the wildcard pattern `_`pub enum PatWildKind {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    BindByValue(Mutability),    BindByRef(Mutability),pub enum BindingMode {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    pub is_shorthand: bool,    pub pat: P<Pat>,    /// The pattern the field is destructured to    pub ident: Ident,    /// The identifier for the fieldpub struct FieldPat {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// except is_shorthand is true/// are treated the same as` x: x, y: ref y, z: ref mut z`,/// Patterns like the fields of Foo `{ x, ref y, ref mut z }`////// A single field in a struct pattern}    pub span: Span,    pub node: Pat_,    pub id: NodeId,pub struct Pat {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    pub span: Span,    pub rules: BlockCheckMode,    /// Distinguishes between `unsafe { ... }` and `{ ... }`    pub id: NodeId,    pub expr: Option<P<Expr>>,    /// without a semicolon, if any    /// An expression at the end of the block    pub stmts: Vec<P<Stmt>>,    /// Statements in a blockpub struct Block {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]}    }        }            }                _ => false                }                        miss.iter().all(|mi| miso.iter().any(|x| x.node == mi.node))                    ns == no &&                MetaList(ref no, ref miso) => {            MetaList(ref ns, ref miss) => match *other {            },                _ => false                }                    (*ns) == (*no) && vs.node == vo.node                MetaNameValue(ref no, ref vo) => {            MetaNameValue(ref ns, ref vs) => match *other {            },                _ => false                MetaWord(ref no) => (*ns) == (*no),            MetaWord(ref ns) => match *other {        match *self {    fn eq(&self, other: &MetaItem_) -> bool {impl PartialEq for MetaItem_ {// can't be derived because the MetaList requires an unordered comparison}    MetaNameValue(InternedString, Lit),    MetaList(InternedString, Vec<P<MetaItem>>),    MetaWord(InternedString),pub enum MetaItem_ {#[derive(Clone, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]pub type MetaItem = Spanned<MetaItem_>;}    pub exported_macros: Vec<MacroDef>,    pub span: Span,    pub config: CrateConfig,    pub attrs: Vec<Attribute>,    pub module: Mod,pub struct Crate {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]pub type CrateConfig = Vec<P<MetaItem>> ;/// used to drive conditional compilation/// The set of MetaItems that define the compilation environment of the crate,}    pub ty: P<Ty>,    pub path: Path,    pub span: Span,    pub id: NodeId,pub struct WhereEqPredicate {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// An equality predicate (unsupported), e.g. `T=int`}    pub bounds: Vec<Lifetime>,    pub lifetime: Lifetime,    pub span: Span,pub struct WhereRegionPredicate {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]/// A lifetime predicate, e.g. `'a: 'b+'c`}    pub bounds: OwnedSlice<TyParamBound>,    /// Trait and lifetime bounds (`Clone+Send+'static`)    pub bounded_ty: P<Ty>,ad�t��hNM����O�
�
�
\
4
3
��P����S2�
�
�
�
s
M
-

�	�	o	^	\	[		�����zhD9�����uMB�����tMB����uLB
������XH-!�����}|lLK�����Z;:�    /// Expr with t    /// Expr with trailing semi-colon (may have any type):    StmtExpr(P<Expr>, NodeId),    /// Expr without trailing semi-colon (must have unit type):    StmtDecl(P<Decl>, NodeId),    /// Could be an item or a local (let) binding:pub enum Stmt_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]pub type Stmt = Spanned<Stmt_>;/// A statement}    UnNeg    /// The `-` operator for negation    UnNot,    /// The `!` operator for logical inversion    UnDeref,    /// The `*` operator for dereferencing    UnUniq,    /// The `box` operatorpub enum UnOp {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]pub type BinOp = Spanned<BinOp_>;}    BiGt,    /// The `>` operator (greater than)    BiGe,    /// The `>=` operator (greater than or equal to)    BiNe,    /// The `!=` operator (not equal to)    BiLe,    /// The `<=` operator (less than or equal to)    BiLt,    /// The `<` operator (less than)    BiEq,    /// The `==` operator (equality)    BiShr,    /// The `>>` operator (shift right)    BiShl,    /// The `<<` operator (shift left)    BiBitOr,    /// The `|` operator (bitwise or)    BiBitAnd,    /// The `&` operator (bitwise and)    BiBitXor,    /// The `^` operator (bitwise xor)    BiOr,    /// The `||` operator (logical or)    BiAnd,    /// The `&&` operator (logical and)    BiRem,    /// The `%` operator (modulus)    BiDiv,    /// The `/` operator (division)    BiMul,    /// The `*` operator (multiplication)    BiSub,    /// The `-` operator (subtraction)    BiAdd,    /// The `+` operator (addition)pub enum BinOp_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    MutImmutable,    MutMutable,pub enum Mutability {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]}    PatMac(Mac),    /// A macro pattern; pre-expansion    PatVec(Vec<P<Pat>>, Option<P<Pat>>, Vec<P<Pat>>),    ///     PatVec(box [a, b], Some(i), box [y, z])    /// [a, b, ..i, y, z] is represented as:    PatRange(P<Expr>, P<Expr>),    /// A range pattern, e.g. `1...2`    PatLit(P<Expr>),    /// A literal    PatRegion(P<Pat>, Mutability),    /// A reference pattern, e.g. `&mut (a, b)`    PatBox(P<Pat>),    /// A `box` pattern    PatTup(Vec<P<Pat>>),    /// A tuple pattern `(a, b)`    PatStruct(Path, Vec<Spanned<FieldPat>>, bool),    /// The `bool` is `true` in the presence of a `..`    /// Destructuring of a struct, e.g. `Foo {x, y, ..}`    PatQPath(QSelf, Path),    /// PatEnum, and the resolver will have to sort that out.    /// referred to as simply `T::CONST`, in which case they will end up as    /// `<T as Trait>::CONST`. Associated consts from inherent impls can be    /// An associated const named using the qualified path `<T>::CONST` or    PatEnum(Path, Option<Vec<P<Pat>>>),    /// "None" means a * pattern where we don't bind the fields to names.    PatIdent(BindingMode, SpannedIdent, Option<P<Pat>>),    /// set (of "PatIdents that refer to nullary enums")    /// records this pattern's NodeId in an auxiliary    /// which it is. The resolver determines this, and    /// In the nullary enum case, the parser can't determine    ///    /// is None).    /// or a nullary enum (in which case the third field    /// A PatIdent may either be a new bound variable,    PatWild(PatWildKind),    /// Represents a wildcard pattern (either `_` or `..`)pub enum Pat_ {#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]