aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-10 13:11:31 +0100
committerAleksey Kladov <[email protected]>2020-07-10 13:11:31 +0100
commitf4147f6a341bda8f4a181a096b7dd726fc2d6b31 (patch)
treeb2fb633577499c0cce6e2c897c52b2e05cef09eb /crates/ra_hir
parent9c54537ecf4694d02f45c7ca0a3828c08c0a0efd (diff)
Dont expose ID
Diffstat (limited to 'crates/ra_hir')
-rw-r--r--crates/ra_hir/src/semantics.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crates/ra_hir/src/semantics.rs b/crates/ra_hir/src/semantics.rs
index 4677eb561..0d877e44e 100644
--- a/crates/ra_hir/src/semantics.rs
+++ b/crates/ra_hir/src/semantics.rs
@@ -25,7 +25,7 @@ use crate::{
25 semantics::source_to_def::{ChildContainer, SourceToDefCache, SourceToDefCtx}, 25 semantics::source_to_def::{ChildContainer, SourceToDefCache, SourceToDefCtx},
26 source_analyzer::{resolve_hir_path, resolve_hir_path_qualifier, SourceAnalyzer}, 26 source_analyzer::{resolve_hir_path, resolve_hir_path_qualifier, SourceAnalyzer},
27 AssocItem, Field, Function, HirFileId, ImplDef, InFile, Local, MacroDef, Module, ModuleDef, 27 AssocItem, Field, Function, HirFileId, ImplDef, InFile, Local, MacroDef, Module, ModuleDef,
28 Name, Origin, Path, ScopeDef, Trait, Type, TypeAlias, TypeParam, 28 Name, Origin, Path, ScopeDef, Trait, Type, TypeAlias, TypeParam, VariantDef,
29}; 29};
30use resolver::TypeNs; 30use resolver::TypeNs;
31 31
@@ -220,9 +220,8 @@ impl<'db, DB: HirDatabase> Semantics<'db, DB> {
220 self.imp.resolve_path(path) 220 self.imp.resolve_path(path)
221 } 221 }
222 222
223 // TODO: id 223 pub fn resolve_variant(&self, record_lit: ast::RecordLit) -> Option<VariantDef> {
224 pub fn resolve_variant(&self, record_lit: ast::RecordLit) -> Option<VariantId> { 224 self.imp.resolve_variant(record_lit).map(VariantDef::from)
225 self.imp.resolve_variant(record_lit)
226 } 225 }
227 226
228 pub fn lower_path(&self, path: &ast::Path) -> Option<Path> { 227 pub fn lower_path(&self, path: &ast::Path) -> Option<Path> {