separate ItemDecorator from ItemDecorator
This commit is contained in:
@@ -33,7 +33,7 @@ pub struct MacroDef {
|
|||||||
ext: SyntaxExtension
|
ext: SyntaxExtension
|
||||||
}
|
}
|
||||||
|
|
||||||
pub type ItemDecorator = @fn(@ExtCtxt,
|
pub type ItemDecoratorFun = @fn(@ExtCtxt,
|
||||||
Span,
|
Span,
|
||||||
@ast::MetaItem,
|
@ast::MetaItem,
|
||||||
~[@ast::item])
|
~[@ast::item])
|
||||||
@@ -62,7 +62,7 @@ pub enum MacResult {
|
|||||||
pub enum SyntaxExtension {
|
pub enum SyntaxExtension {
|
||||||
|
|
||||||
// #[auto_encode] and such
|
// #[auto_encode] and such
|
||||||
ItemDecorator(ItemDecorator),
|
ItemDecorator(ItemDecoratorFun),
|
||||||
|
|
||||||
// Token-tree expanders
|
// Token-tree expanders
|
||||||
NormalTT(SyntaxExpanderTTFun, Option<Span>),
|
NormalTT(SyntaxExpanderTTFun, Option<Span>),
|
||||||
|
|||||||
Reference in New Issue
Block a user