mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add vis matcher
This commit is contained in:
parent
c5983b85fc
commit
87ff908135
6 changed files with 33 additions and 1 deletions
|
@ -58,6 +58,10 @@ impl<'a> Parser<'a> {
|
|||
self.parse(ra_parser::parse_item)
|
||||
}
|
||||
|
||||
pub fn parse_vis(self) -> Option<tt::TokenTree> {
|
||||
self.parse(ra_parser::parse_vis)
|
||||
}
|
||||
|
||||
fn parse<F>(self, f: F) -> Option<tt::TokenTree>
|
||||
where
|
||||
F: FnOnce(&dyn TokenSource, &mut dyn TreeSink),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue