diff options
author | Kevin Mehall <[email protected]> | 2021-03-06 16:46:32 +0000 |
---|---|---|
committer | Kevin Mehall <[email protected]> | 2021-03-06 16:48:30 +0000 |
commit | 62f594b390e5f648a32b5b08863a6413b4271d19 (patch) | |
tree | 47de88bc047e957149544f48f2696f2706b9ed4b /crates/hir_def/src/body | |
parent | 632fa8ef4a3c9e7440b79e04a9f7dd9bd23a4de4 (diff) |
Refactor TokenStream to hold Vec<TokenTree> instead of tt::Subtree
`TokenStream` assumes that its subtree's delimeter is `None`, and this
should be encoded in the type system instead of having a delimiter field
that is mostly ignored.
`tt::Subtree` is just `pub delimiter: Option<Delimiter>, pub
token_trees: Vec<TokenTree>`, so a Subtree that is statically guaranteed
not to have a delimiter is just Vec<TokenTree>.
Diffstat (limited to 'crates/hir_def/src/body')
0 files changed, 0 insertions, 0 deletions