summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-03-09 14:12:48 +0800
committerJohn Hodge <tpg@mutabah.net>2016-03-09 14:12:48 +0800
commitaeccbb23b717985e8719b3758e3cd28a0c0052f4 (patch)
tree7ccad85d2354817991c6148bb663f733a72151dc /src/include
parent0571d0f4741106bcb43b512a66747e582b12ead7 (diff)
downloadmrust-aeccbb23b717985e8719b3758e3cd28a0c0052f4.tar.gz
Parse - Remove module stack (was for macros), yield stream from macros
Diffstat (limited to 'src/include')
-rw-r--r--src/include/synext.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/synext.hpp b/src/include/synext.hpp
index f8d128f7..05020c8c 100644
--- a/src/include/synext.hpp
+++ b/src/include/synext.hpp
@@ -20,6 +20,7 @@ namespace AST {
class MacroInvocation;
}
class TokenTree;
+class TokenStream;
#include "../common.hpp" // for mv$ and other things
@@ -59,7 +60,7 @@ class ExpandProcMacro
public:
virtual bool expand_early() const = 0;
- virtual AST::Expr expand(const ::std::string& ident, const TokenTree& tt, AST::Module& mod, MacroPosition position) = 0;
+ virtual ::std::unique_ptr<TokenStream> expand(const ::std::string& ident, const TokenTree& tt, AST::Module& mod) = 0;
};
#define STATIC_DECORATOR(ident, _handler_class) \