diff options
| author | Niko Matsakis <niko@alum.mit.edu> | 2012-03-02 14:36:22 -0800 |
|---|---|---|
| committer | Niko Matsakis <niko@alum.mit.edu> | 2012-03-13 21:30:06 -0400 |
| commit | bdd0c9387bb10e0db01c00dcd47ea3e6bc343e45 (patch) | |
| tree | 1dbc43e5cd08037aa6cd11de8e1528b2a118b7f3 /src/rustc/syntax/ext/base.rs | |
| parent | c3516f091bbf051f8f9d40ea0dda9ab8c4584e74 (diff) | |
get new decorator extensions working
Diffstat (limited to 'src/rustc/syntax/ext/base.rs')
| -rw-r--r-- | src/rustc/syntax/ext/base.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rustc/syntax/ext/base.rs b/src/rustc/syntax/ext/base.rs index d59591d849a..721f059ee35 100644 --- a/src/rustc/syntax/ext/base.rs +++ b/src/rustc/syntax/ext/base.rs @@ -11,10 +11,13 @@ type syntax_expander = { type macro_def = {ident: str, ext: syntax_extension}; type macro_definer = fn@(ext_ctxt, span, ast::mac_arg, ast::mac_body) -> macro_def; +type item_decorator = + fn@(ext_ctxt, span, ast::meta_item, [@ast::item]) -> [@ast::item]; enum syntax_extension { normal(syntax_expander), macro_defining(macro_definer), + item_decorator(item_decorator), } // A temporary hard-coded map of methods for expanding syntax extension |
