diff options
author | John Hodge <tpg@mutabah.net> | 2016-08-28 12:49:24 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-08-28 12:49:24 +0800 |
commit | 21dbf4949edd87c81f7eb8396fb4f91ef76a10a8 (patch) | |
tree | 9d0e314456d302205305cdba8b592b0b52a84105 /src/include | |
parent | 03bc080d35b6ee09345f012137dd52d6fa6c5b53 (diff) | |
download | mrust-21dbf4949edd87c81f7eb8396fb4f91ef76a10a8.tar.gz |
Expand - Support #[cfg] on use statements
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/synext_decorator.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/synext_decorator.hpp b/src/include/synext_decorator.hpp index 5ae1af53..06f603b1 100644 --- a/src/include/synext_decorator.hpp +++ b/src/include/synext_decorator.hpp @@ -21,6 +21,7 @@ namespace AST { class Module; class Item; + class UseStmt; class Expr; class ExprNode; @@ -47,6 +48,7 @@ public: virtual void handle(const Span& sp, const AST::MetaItem& mi, AST::Crate& crate) const { unexpected(sp, mi, "crate"); } virtual void handle(const Span& sp, const AST::MetaItem& mi, AST::Crate& crate, AST::MacroInvocation& mac) const { unexpected(sp, mi, "macro invocation"); } + virtual void handle(const Span& sp, const AST::MetaItem& mi, AST::Crate& crate, AST::UseStmt& use) const { unexpected(sp, mi, "use statement"); } virtual void handle(const Span& sp, const AST::MetaItem& mi, AST::Crate& crate, const AST::Path& path, AST::Module& mod, AST::Item&i) const { unexpected(sp, mi, "item"); } // NOTE: To delete, set the type to `_` virtual void handle(const Span& sp, const AST::MetaItem& mi, AST::Crate& crate, const AST::Module& mod, AST::ImplDef& impl) const { unexpected(sp, mi, "impl"); } |