Refactor TokenStream
.
This commit is contained in:
parent
ec29011346
commit
2dc60b1180
19 changed files with 446 additions and 1310 deletions
|
@ -196,7 +196,7 @@ pub fn new_parser_from_tts<'a>(sess: &'a ParseSess, tts: Vec<tokenstream::TokenT
|
|||
}
|
||||
|
||||
pub fn new_parser_from_ts<'a>(sess: &'a ParseSess, ts: tokenstream::TokenStream) -> Parser<'a> {
|
||||
tts_to_parser(sess, ts.to_tts())
|
||||
tts_to_parser(sess, ts.trees().cloned().collect())
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue