mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 13:25:09 +00:00
Node-ify lifetimes
This commit is contained in:
parent
d34611633b
commit
dd496223f5
63 changed files with 420 additions and 274 deletions
|
@ -283,6 +283,13 @@ fn name_ref_or_index(p: &mut Parser) {
|
|||
m.complete(p, NAME_REF);
|
||||
}
|
||||
|
||||
fn lifetime(p: &mut Parser) {
|
||||
assert!(p.at(LIFETIME_IDENT));
|
||||
let m = p.start();
|
||||
p.bump(LIFETIME_IDENT);
|
||||
m.complete(p, LIFETIME);
|
||||
}
|
||||
|
||||
fn error_block(p: &mut Parser, message: &str) {
|
||||
assert!(p.at(T!['{']));
|
||||
let m = p.start();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue