b0VIM 7.4 ��ZUհ
�� erickt Erick-Tryzelaar-MBP.local ~erickt/projects/rust/serde/serde/serde_codegen/src/lib.rs
3210 #"! U tp I ad � I � t s _ K J * � � � � � � m Y X 8 �
�
�
�
}
`
_
3
� n m : 9 � � C �
�
`
� � � � � � v G 9 / . � � � � � � e + � � � j ? } Box::new(de::expand_derive_deserialize))); syntax::ext::base::MultiDecorator( syntax::parse::token::intern("derive_Deserialize"), reg.register_syntax_extension( Box::new(ser::expand_derive_serialize))); syntax::ext::base::MultiDecorator( syntax::parse::token::intern("derive_Serialize"), reg.register_syntax_extension( pub fn register(reg: &mut rustc::plugin::Registry) { #[cfg(not(feature = "with-syntex"))] } } fold::Folder::fold_crate(&mut StripAttributeFolder, krate) } } fold::noop_fold_mac(mac, self) fn fold_mac(&mut self, mac: ast::Mac) -> ast::Mac { } Some(attr) } _ => {} ast::MetaList(ref n, _) if n == &"serde" => { return None; } match attr.node.value.node { fn fold_attribute(&mut self, attr: ast::Attribute) -> Option<ast::Attribute> { impl fold::Folder for StripAttributeFolder { struct StripAttributeFolder; /// Helper folder that strips the serde attributes after the extensions have been expanded. fn strip_attributes(krate: ast::Crate) -> ast::Crate { #[cfg(feature = "with-syntex")] /// Strip the serde attributes from the crate. reg.add_post_expansion_pass(strip_attributes); reg.add_decorator("derive_Deserialize", de::expand_derive_deserialize); reg.add_decorator("derive_Serialize", ser::expand_derive_serialize); reg.add_attr("feature(custom_attribute)"); reg.add_attr("feature(custom_derive)"); use syntax::{ast, fold}; pub fn register(reg: &mut syntex::Registry) { #[cfg(feature = "with-syntex")] include!("lib.rs.in"); #[cfg(not(feature = "with-syntex"))] include!(concat!(env!("OUT_DIR"), "/lib.rs")); #[cfg(feature = "with-syntex")] extern crate rustc; #[cfg(not(feature = "with-syntex"))] extern crate syntax; #[cfg(not(feature = "with-syntex"))] extern crate syntex_syntax as syntax; #[cfg(feature = "with-syntex")] extern crate syntex; #[cfg(feature = "with-syntex")] extern crate quasi; extern crate aster; #![cfg_attr(not(feature = "with-syntex"), plugin(quasi_macros))] #![cfg_attr(not(feature = "with-syntex"), feature(rustc_private, plugin))]