syntex_syntax 0.1.0

Export of libsyntax for code generation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
b0VIM 7.4</�T�:��
ericktErick-Tryzelaar-MBP.local~erickt/projects/rust/rust/src/libsyntax/print/pprust.rs
3210#"! Utp r��������fs��������G���������� ��������|���������l��������^���������\���������]E��������Y���������Z���������\U��������e���������c��������Zy��������i���������[<��������R���������W���������h@��������q���������\��������]u��������f���������r8	��������a�	��������d
��������no
��������^�
��������c;��������u�ad
�r�{XU��M)(
�
�
I

����aQ$���dXW@!�
�
�
�
�
e
J
H
G
5
�	�	�	�		m	l	T	S	C				������xI�����rP$"!���]K3�����~SMKJ)���C1	��sD���K��                                      input,                                      filename,                                      span_diagnostic,    let mut s = State::new_from_input(cm,                       is_expanded: bool) -> IoResult<()> {                       ann: &'a PpAnn,                       out: Box<io::Writer+'static>,                       input: &mut io::Reader,                       filename: String,                       krate: &ast::Crate,                       span_diagnostic: &diagnostic::SpanHandler,pub fn print_crate<'a>(cm: &'a CodeMap,/// copy forward./// it can scan the input text for comments and literals to/// Requires you to pass an input filename and reader so thatpub const default_columns: uint = 78u;#[allow(non_upper_case_globals)]pub const indent_unit: uint = 4u;#[allow(non_upper_case_globals)]}    }        encode_idents_with_hygiene: false,        ann: ann,        boxes: Vec::new(),        },            cur_lit: 0            cur_cmnt: 0,        cur_cmnt_and_lit: CurrentCommentAndLiteral {        literals: None,        comments: None,        cm: None,        s: pp::mk_printer(writer, default_columns),    State {                                  ann: &'a PpAnn) -> State<'a> {pub fn rust_printer_annotated<'a>(writer: Box<io::Writer+'static>,}    rust_printer_annotated(writer, &NO_ANN)    static NO_ANN: NoAnn = NoAnn;pub fn rust_printer(writer: Box<io::Writer+'static>) -> State<'static> {}    encode_idents_with_hygiene: bool,    ann: &'a (PpAnn+'a),    boxes: Vec<pp::Breaks>,    cur_cmnt_and_lit: CurrentCommentAndLiteral,    literals: Option<Vec<comments::Literal> >,    comments: Option<Vec<comments::Comment> >,    cm: Option<&'a CodeMap>,    pub s: pp::Printer,pub struct State<'a> {}    cur_lit: uint,    cur_cmnt: uint,pub struct CurrentCommentAndLiteral {#[derive(Copy)]impl PpAnn for NoAnn {}pub struct NoAnn;#[derive(Copy)]}    fn post(&self, _state: &mut State, _node: AnnNode) -> IoResult<()> { Ok(()) }    fn pre(&self, _state: &mut State, _node: AnnNode) -> IoResult<()> { Ok(()) }pub trait PpAnn {}    NodePat(&'a ast::Pat),    NodeExpr(&'a ast::Expr),    NodeItem(&'a ast::Item),    NodeBlock(&'a ast::Block),    NodeName(&'a ast::Name),    NodeIdent(&'a ast::Ident),pub enum AnnNode<'a> {use std::iter;use std::io::{self, IoResult};use std::{ascii, mem};use ptr::P;use print::pp::Breaks::{Consistent, Inconsistent};use print::pp::{Breaks, eof};use print::pp::{self, break_offset, word, space, zerobreak, hardbreak};use parse;use parse::lexer::comments;use parse::token::{self, BinOpToken, Token};use diagnostic;use codemap::{self, CodeMap, BytePos};use attr::{AttrMetaMethods, AttributeMethods};use owned_slice::OwnedSlice;use ast_util;use ast::{UnboxedClosureKind};use ast::{RequiredMethod, ProvidedMethod, TypeImplItem, TypeTraitItem};use ast::{MethodImplItem, RegionTyParamBound, TraitTyParamBound, TraitBoundModifier};use ast::{FnOnceUnboxedClosureKind};use ast::{self, FnUnboxedClosureKind, FnMutUnboxedClosureKind};use abi;pub use self::AnnNode::*;// 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�<
���mP2&%������9�
�
D
>
<
;
}    }                   lit_to_string(&codemap::dummy_spanned(neg_int)));        assert_eq!(format!("-{}", lit_to_string(&codemap::dummy_spanned(pos_int))),        let neg_int = ast::LitInt((-42) as u64, ast::SignedIntLit(ast::TyI32, ast::Minus));        let pos_int = ast::LitInt(42, ast::SignedIntLit(ast::TyI32, ast::Plus));    fn test_signed_int_to_string() {    #[test]    }        assert_eq!(varstr, "pub principal_skinner");        let varstr = variant_to_string(&var);        });            vis: ast::Public,            disr_expr: None,            id: 0,            kind: ast::TupleVariantKind(Vec::new()),            // making this up as I go.... ?            attrs: Vec::new(),