b0VIM 7.4 �U�9�w erickt Erick-Tryzelaar-MBP.local ~erickt/projects/rust/rust-quasi/quasi/src/lib.rs utf-8
3210 #"! U tp w x x Y � ad � w � { X U � � M ) ( �
�
�
�
�
x
c
b
Q
P
� � | a M L 7 � � � � � � � ~ } R �
�
�
�
�
�
u
>
'
!
� � t n l k ? � � � � � � W B � � � � � � � ? 9 7 6 � | v t s W � � � � � `
� � K E C B ! � � � � � ` % � � � � � _ � } vec![ast::TtToken(self.span, token::Interpolated(token::NtTraitItem(self.clone())))] fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { impl ToTokens for P<ast::TraitItem> { } } vec![ast::TtToken(self.span, token::Interpolated(token::NtImplItem(self.clone())))] fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { impl ToTokens for P<ast::ImplItem> { } } vec![ast::TtToken(self.span, token::Interpolated(token::NtItem(self.clone())))] fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { impl ToTokens for P<ast::Item> { } } vec![ast::TtToken(self.span, token::Interpolated(token::NtBlock(self.clone())))] fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { impl ToTokens for P<ast::Block> { } } vec![ast::TtToken(self.span, token::Interpolated(token::NtTy(self.clone())))] fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { impl ToTokens for P<ast::Ty> { } } vec![ast::TtToken(self.span, token::Interpolated(token::NtTy(P(self.clone()))))] fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { impl ToTokens for ast::Ty { } } vec![ast::TtToken(DUMMY_SP, token::Interpolated(token::NtPath(Box::new(self.clone()))))] fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { impl ToTokens for ast::Path { } } vec![ast::TtToken(DUMMY_SP, token::Ident(*self, token::Plain))] fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { impl ToTokens for ast::Ident { } } } &None => Vec::new(), &Some(ref t) => t.to_tokens(cx), match self { fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree> { impl<T: ToTokens> ToTokens for Option<T> { } } self.node.to_tokens(cx) // FIXME: use the span? fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree> { impl<T: ToTokens> ToTokens for Spanned<T> { } } self.iter().flat_map(|t| t.to_tokens(cx).into_iter()).collect() fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree> { impl<T: ToTokens> ToTokens for Vec<T> { } } .collect() .flat_map(|t| t.to_tokens(cx).into_iter()) self.iter() fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree> { impl<'a, T: ToTokens> ToTokens for &'a [T] { } } (**self).to_tokens(cx) fn to_tokens(&self, cx: &ExtCtxt) -> Vec<TokenTree> { impl<'a, T: ToTokens> ToTokens for &'a T { } } vec!(self.clone()) fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree> { impl ToTokens for TokenTree { } fn to_tokens(&self, _cx: &ExtCtxt) -> Vec<TokenTree>; pub trait ToTokens { use syntax::ptr::P; use syntax::print::pprust; use syntax::parse::{self, classify, parse_tts_from_source_str, token}; use syntax::ext::base::ExtCtxt; use syntax::codemap::{DUMMY_SP, Spanned, dummy_spanned}; use syntax::ast::{self, TokenTree, Generics, Expr}; use std::rc::Rc; extern crate syntax; #[cfg(not(feature = "with-syntex"))] extern crate syntex_syntax as syntax; #[cfg(feature = "with-syntex")] #![cfg_attr(not(feature = "with-syntex"), feature(rustc_private))] // 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 //