mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-29 05:15:04 +00:00
Add _token suffix to token accessors
I think this makes is more clear which things are : AstNode and which are : AstToken
This commit is contained in:
parent
a95116fbfa
commit
e6d22187a6
12 changed files with 210 additions and 213 deletions
|
@ -287,7 +287,7 @@ where
|
|||
let pred = predicates.next().unwrap();
|
||||
let mut bounds = pred.type_bound_list().unwrap().bounds();
|
||||
|
||||
assert_eq!("'a", pred.lifetime().unwrap().text());
|
||||
assert_eq!("'a", pred.lifetime_token().unwrap().text());
|
||||
|
||||
assert_bound("'b", bounds.next());
|
||||
assert_bound("'c", bounds.next());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue