diff options
author | Aleksey Kladov <[email protected]> | 2019-12-17 14:38:28 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-12-17 14:38:28 +0000 |
commit | aca022f1d49a6d945f3ef4f8c781d7337120b68d (patch) | |
tree | 4cddf22d75fc1a9a3e8ff2863a1983348f193b26 /crates/ra_hir_def/src/path/lower.rs | |
parent | 4a58522119955f36d95212be902fe3ab79c5e922 (diff) |
Refactor PathKind
Diffstat (limited to 'crates/ra_hir_def/src/path/lower.rs')
-rw-r--r-- | crates/ra_hir_def/src/path/lower.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/path/lower.rs b/crates/ra_hir_def/src/path/lower.rs index a2e995198..c71b52d89 100644 --- a/crates/ra_hir_def/src/path/lower.rs +++ b/crates/ra_hir_def/src/path/lower.rs | |||
@@ -95,11 +95,11 @@ pub(super) fn lower_path(mut path: ast::Path, hygiene: &Hygiene) -> Option<Path> | |||
95 | break; | 95 | break; |
96 | } | 96 | } |
97 | ast::PathSegmentKind::SelfKw => { | 97 | ast::PathSegmentKind::SelfKw => { |
98 | kind = PathKind::Self_; | 98 | kind = PathKind::Super(0); |
99 | break; | 99 | break; |
100 | } | 100 | } |
101 | ast::PathSegmentKind::SuperKw => { | 101 | ast::PathSegmentKind::SuperKw => { |
102 | kind = PathKind::Super; | 102 | kind = PathKind::Super(1); |
103 | break; | 103 | break; |
104 | } | 104 | } |
105 | } | 105 | } |