mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
Move TokenMap
to its own file
This commit is contained in:
parent
01f8d40c5c
commit
27bf62b70e
3 changed files with 89 additions and 81 deletions
|
@ -14,6 +14,7 @@ mod tests;
|
|||
|
||||
#[cfg(test)]
|
||||
mod benchmark;
|
||||
mod token_map;
|
||||
|
||||
use std::fmt;
|
||||
|
||||
|
@ -65,8 +66,9 @@ impl fmt::Display for ExpandError {
|
|||
|
||||
pub use crate::syntax_bridge::{
|
||||
ast_to_token_tree, parse_exprs_with_sep, parse_to_token_tree, syntax_node_to_token_tree,
|
||||
token_tree_to_syntax_node, TokenMap,
|
||||
token_tree_to_syntax_node,
|
||||
};
|
||||
pub use crate::token_map::TokenMap;
|
||||
|
||||
/// This struct contains AST for a single `macro_rules` definition. What might
|
||||
/// be very confusing is that AST has almost exactly the same shape as
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue