From f97cff9abd4ea7a7a8ac24bb9afb09eb271bcda9 Mon Sep 17 00:00:00 2001 From: Adolfo OchagavĂ­a Date: Fri, 16 Jan 2015 23:04:55 +0100 Subject: Add MultiDecorator variant to SyntaxExtension enum --- src/libsyntax/ext/base.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/ext/base.rs') diff --git a/src/libsyntax/ext/base.rs b/src/libsyntax/ext/base.rs index edd66b50286..7d802d953b3 100644 --- a/src/libsyntax/ext/base.rs +++ b/src/libsyntax/ext/base.rs @@ -418,11 +418,15 @@ impl MacResult for DummyResult { /// An enum representing the different kinds of syntax extensions. pub enum SyntaxExtension { + /// A syntax extension that is attached to an item and creates new items + /// based upon it. + Decorator(Box), + /// A syntax extension that is attached to an item and creates new items /// based upon it. /// /// `#[derive(...)]` is an `ItemDecorator`. - Decorator(Box), + MultiDecorator(Box), /// A syntax extension that is attached to an item and modifies it /// in-place. -- cgit 1.4.1-3-g733a5