diff options
author | Aleksey Kladov <[email protected]> | 2019-01-31 18:29:04 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-31 20:23:30 +0000 |
commit | 2d1f0b105d7995088fdf7a90e5e594b5555699c6 (patch) | |
tree | 2c70b7671381c0ec42190303bbf6865a638ed39c /crates/ra_mbe/src/lib.rs | |
parent | 40feacdeb90786b49ea9e0510ba22ff7af79e020 (diff) |
move test
Diffstat (limited to 'crates/ra_mbe/src/lib.rs')
-rw-r--r-- | crates/ra_mbe/src/lib.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/crates/ra_mbe/src/lib.rs b/crates/ra_mbe/src/lib.rs index 38bf3431a..c7be33b19 100644 --- a/crates/ra_mbe/src/lib.rs +++ b/crates/ra_mbe/src/lib.rs | |||
@@ -1,3 +1,8 @@ | |||
1 | /// `mbe` (short for Macro By Example) crate contains code for handling | ||
2 | /// `macro_rules` macros. It uses `TokenTree` (from `ra_tt` package) as the | ||
3 | /// interface, although it contains some code to bridge `SyntaxNode`s and | ||
4 | /// `TokenTree`s as well! | ||
5 | |||
1 | macro_rules! impl_froms { | 6 | macro_rules! impl_froms { |
2 | ($e:ident: $($v:ident), *) => { | 7 | ($e:ident: $($v:ident), *) => { |
3 | $( | 8 | $( |
@@ -13,14 +18,16 @@ macro_rules! impl_froms { | |||
13 | mod tt_cursor; | 18 | mod tt_cursor; |
14 | mod mbe_parser; | 19 | mod mbe_parser; |
15 | mod mbe_expander; | 20 | mod mbe_expander; |
21 | mod syntax_bridge; | ||
16 | 22 | ||
17 | use smol_str::SmolStr; | 23 | use ra_syntax::SmolStr; |
18 | 24 | ||
19 | pub use tt::{Delimiter, Punct}; | 25 | pub use tt::{Delimiter, Punct}; |
20 | 26 | ||
21 | pub use crate::{ | 27 | pub use crate::{ |
22 | mbe_parser::parse, | 28 | mbe_parser::parse, |
23 | mbe_expander::exapnd, | 29 | mbe_expander::exapnd, |
30 | syntax_bridge::macro_call_to_tt, | ||
24 | }; | 31 | }; |
25 | 32 | ||
26 | #[derive(Debug)] | 33 | #[derive(Debug)] |