implement tt -> ast

This commit is contained in:
Aleksey Kladov 2019-02-23 17:21:56 +03:00
parent 83d6be6cec
commit 8eac450f41
2 changed files with 55 additions and 5 deletions

View file

@ -24,7 +24,7 @@ use ra_syntax::SmolStr;
pub use tt::{Delimiter, Punct};
pub use crate::syntax_bridge::ast_to_token_tree;
pub use crate::syntax_bridge::{ast_to_token_tree, token_tree_to_ast_item_list};
/// 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