initializes the parser with a TokenStream
(tokens: TokenStream)
| 74 | impl Parser { |
| 75 | /// initializes the parser with a TokenStream |
| 76 | pub fn from_token_stream(tokens: TokenStream) -> Self { |
| 77 | Self { |
| 78 | tokens: tokens.into_iter().collect(), |
| 79 | last_span: None, |
| 80 | source_span: None, |
| 81 | } |
| 82 | } |
| 83 | /// initializes the parser with a TokenStream and the last span |
| 84 | fn from_token_stream_last_span(&self, tokens: TokenStream) -> Self { |
| 85 | Self { |