aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-05-24 20:47:01 +0100
committerJonas Schievink <[email protected]>2021-05-24 20:47:01 +0100
commitc8f40b1503cb461b935f5fb0a44fa8e26976c363 (patch)
treebb464f7c1f0ac672059bc76e27a11545441685d5 /crates
parent489ae7a800b02dbdacc1f949c067fa557333e7a1 (diff)
Fixup
Diffstat (limited to 'crates')
-rw-r--r--crates/mbe/src/lib.rs10
-rw-r--r--crates/mbe/src/token_map.rs2
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
67pub use crate::syntax_bridge::{ 67pub 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};
71pub 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
1use parser::{SyntaxKind, T}; 3use parser::{SyntaxKind, T};
2use syntax::{TextRange, TextSize}; 4use syntax::{TextRange, TextSize};
3 5