mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-02 22:54:58 +00:00
route parsing via TokenSource trait
This commit is contained in:
parent
3517c175ac
commit
0c81b9deee
3 changed files with 59 additions and 64 deletions
|
@ -17,7 +17,9 @@ use crate::{
|
|||
/// tree, but rather a flat stream of events of the form
|
||||
/// "start expression, consume number literal,
|
||||
/// finish expression". See `Event` docs for more.
|
||||
pub(crate) struct Parser<'t>(pub(super) ParserImpl<'t>);
|
||||
pub(crate) struct Parser<'t>(
|
||||
pub(super) ParserImpl<crate::parsing::parser_impl::input::ParserInput<'t>>,
|
||||
);
|
||||
|
||||
impl<'t> Parser<'t> {
|
||||
/// Returns the kind of the current token.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue