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_hir_def/src/path/lower | |
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_hir_def/src/path/lower')
-rw-r--r-- | crates/ra_hir_def/src/path/lower/lower_use.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/path/lower/lower_use.rs b/crates/ra_hir_def/src/path/lower/lower_use.rs index 6ec944228..5b6854b0f 100644 --- a/crates/ra_hir_def/src/path/lower/lower_use.rs +++ b/crates/ra_hir_def/src/path/lower/lower_use.rs | |||
@@ -34,7 +34,7 @@ pub(crate) fn lower_use_tree( | |||
34 | let alias = tree.alias().map(|a| { | 34 | let alias = tree.alias().map(|a| { |
35 | a.name().map(|it| it.as_name()).map_or(ImportAlias::Underscore, ImportAlias::Alias) | 35 | a.name().map(|it| it.as_name()).map_or(ImportAlias::Underscore, ImportAlias::Alias) |
36 | }); | 36 | }); |
37 | let is_glob = tree.star().is_some(); | 37 | let is_glob = tree.star_token().is_some(); |
38 | if let Some(ast_path) = tree.path() { | 38 | if let Some(ast_path) = tree.path() { |
39 | // Handle self in a path. | 39 | // Handle self in a path. |
40 | // E.g. `use something::{self, <...>}` | 40 | // E.g. `use something::{self, <...>}` |