diff options
Diffstat (limited to 'crates/ra_hir/src/path.rs')
-rw-r--r-- | crates/ra_hir/src/path.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_hir/src/path.rs b/crates/ra_hir/src/path.rs index a61161b63..39d1b7e46 100644 --- a/crates/ra_hir/src/path.rs +++ b/crates/ra_hir/src/path.rs | |||
@@ -190,6 +190,13 @@ impl Path { | |||
190 | pub fn expand_macro_expr(&self) -> Option<Name> { | 190 | pub fn expand_macro_expr(&self) -> Option<Name> { |
191 | self.as_ident().and_then(|name| Some(name.clone())) | 191 | self.as_ident().and_then(|name| Some(name.clone())) |
192 | } | 192 | } |
193 | |||
194 | pub fn is_type_relative(&self) -> bool { | ||
195 | match self.kind { | ||
196 | PathKind::Type(_) => true, | ||
197 | _ => false, | ||
198 | } | ||
199 | } | ||
193 | } | 200 | } |
194 | 201 | ||
195 | impl GenericArgs { | 202 | impl GenericArgs { |