separate ItemDecorator from ItemDecorator

This commit is contained in:
John Clements 2013-05-28 14:55:50 -07:00
parent 431ede40df
commit 93337f0daa

View File

@ -33,7 +33,7 @@ pub struct MacroDef {
ext: SyntaxExtension
}
pub type ItemDecorator = @fn(@ExtCtxt,
pub type ItemDecoratorFun = @fn(@ExtCtxt,
Span,
@ast::MetaItem,
~[@ast::item])
@ -62,7 +62,7 @@ pub enum MacResult {
pub enum SyntaxExtension {
// #[auto_encode] and such
ItemDecorator(ItemDecorator),
ItemDecorator(ItemDecoratorFun),
// Token-tree expanders
NormalTT(SyntaxExpanderTTFun, Option<Span>),