2015-12-10 23:23:14 +09:00
|
|
|
use syntax::ext::base;
|
|
|
|
use syntax::print;
|
2019-08-31 20:08:06 +03:00
|
|
|
use syntax::tokenstream::TokenStream;
|
2016-06-21 18:08:13 -04:00
|
|
|
use syntax_pos;
|
2012-12-23 17:41:37 -05:00
|
|
|
|
2019-06-22 16:18:05 +03:00
|
|
|
pub fn expand_syntax_ext<'cx>(_cx: &'cx mut base::ExtCtxt<'_>,
|
2016-06-21 18:08:13 -04:00
|
|
|
sp: syntax_pos::Span,
|
2019-08-31 20:08:06 +03:00
|
|
|
tts: TokenStream)
|
2018-07-12 11:58:16 +02:00
|
|
|
-> Box<dyn base::MacResult + 'cx> {
|
2014-10-22 16:37:20 +11:00
|
|
|
println!("{}", print::pprust::tts_to_string(tts));
|
2011-08-08 14:17:33 -07:00
|
|
|
|
2014-03-18 23:14:08 +11:00
|
|
|
// any so that `log_syntax` can be invoked as an expression and item.
|
2018-12-20 03:57:48 +03:00
|
|
|
base::DummyResult::any_valid(sp)
|
2011-08-12 07:15:18 -07:00
|
|
|
}
|