diff options
Diffstat (limited to 'crates/mbe')
-rw-r--r-- | crates/mbe/src/lib.rs | 10 | ||||
-rw-r--r-- | crates/mbe/src/token_map.rs | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/crates/mbe/src/lib.rs b/crates/mbe/src/lib.rs index b7aa64713..b95374b76 100644 --- a/crates/mbe/src/lib.rs +++ b/crates/mbe/src/lib.rs | |||
@@ -64,11 +64,13 @@ impl fmt::Display for ExpandError { | |||
64 | } | 64 | } |
65 | } | 65 | } |
66 | 66 | ||
67 | pub use crate::syntax_bridge::{ | 67 | pub use crate::{ |
68 | ast_to_token_tree, parse_exprs_with_sep, parse_to_token_tree, syntax_node_to_token_tree, | 68 | syntax_bridge::{ |
69 | token_tree_to_syntax_node, | 69 | ast_to_token_tree, parse_exprs_with_sep, parse_to_token_tree, syntax_node_to_token_tree, |
70 | token_tree_to_syntax_node, | ||
71 | }, | ||
72 | token_map::TokenMap, | ||
70 | }; | 73 | }; |
71 | pub use crate::token_map::TokenMap; | ||
72 | 74 | ||
73 | /// This struct contains AST for a single `macro_rules` definition. What might | 75 | /// This struct contains AST for a single `macro_rules` definition. What might |
74 | /// be very confusing is that AST has almost exactly the same shape as | 76 | /// be very confusing is that AST has almost exactly the same shape as |
diff --git a/crates/mbe/src/token_map.rs b/crates/mbe/src/token_map.rs index 0567475be..6df3de3b3 100644 --- a/crates/mbe/src/token_map.rs +++ b/crates/mbe/src/token_map.rs | |||
@@ -1,3 +1,5 @@ | |||
1 | //! Mapping between `TokenId`s and the token's position in macro definitions or inputs. | ||
2 | |||
1 | use parser::{SyntaxKind, T}; | 3 | use parser::{SyntaxKind, T}; |
2 | use syntax::{TextRange, TextSize}; | 4 | use syntax::{TextRange, TextSize}; |
3 | 5 | ||