diff options
author | Aleksey Kladov <[email protected]> | 2020-04-09 17:25:36 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-04-09 17:25:36 +0100 |
commit | e6d22187a67e762bb950de244a6ca15f3a0b0731 (patch) | |
tree | c1bf1fa132003b333b6ccd55d60127d93518f0eb /crates/ra_syntax/src/ast.rs | |
parent | a95116fbfa11cad4e03b8b31f8d4498f3ddd5d9e (diff) |
Add _token suffix to token accessors
I think this makes is more clear which things are : AstNode and which
are : AstToken
Diffstat (limited to 'crates/ra_syntax/src/ast.rs')
-rw-r--r-- | crates/ra_syntax/src/ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs index a42eec91a..15a8279f3 100644 --- a/crates/ra_syntax/src/ast.rs +++ b/crates/ra_syntax/src/ast.rs | |||
@@ -287,7 +287,7 @@ where | |||
287 | let pred = predicates.next().unwrap(); | 287 | let pred = predicates.next().unwrap(); |
288 | let mut bounds = pred.type_bound_list().unwrap().bounds(); | 288 | let mut bounds = pred.type_bound_list().unwrap().bounds(); |
289 | 289 | ||
290 | assert_eq!("'a", pred.lifetime().unwrap().text()); | 290 | assert_eq!("'a", pred.lifetime_token().unwrap().text()); |
291 | 291 | ||
292 | assert_bound("'b", bounds.next()); | 292 | assert_bound("'b", bounds.next()); |
293 | assert_bound("'c", bounds.next()); | 293 | assert_bound("'c", bounds.next()); |