diff options
author | Florian Diebold <[email protected]> | 2019-01-19 17:58:04 +0000 |
---|---|---|
committer | Florian Diebold <[email protected]> | 2019-01-19 17:58:04 +0000 |
commit | 969f588025ab2c3224757e282ef78a546c4f56c4 (patch) | |
tree | 0f0059a98b6ac1e9cdba23524ed40e0095da62d3 /crates/ra_hir/src/code_model_api.rs | |
parent | 9e4b5ecec4fa4f6a20bb4d47f09de602e9c29608 (diff) |
Generics -> GenericParams
Diffstat (limited to 'crates/ra_hir/src/code_model_api.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index 6c85e5939..88eda5ed0 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -12,7 +12,7 @@ use crate::{ | |||
12 | expr::BodySyntaxMapping, | 12 | expr::BodySyntaxMapping, |
13 | ty::InferenceResult, | 13 | ty::InferenceResult, |
14 | adt::VariantData, | 14 | adt::VariantData, |
15 | generics::Generics, | 15 | generics::GenericParams, |
16 | code_model_impl::def_id_to_ast, | 16 | code_model_impl::def_id_to_ast, |
17 | }; | 17 | }; |
18 | 18 | ||
@@ -203,8 +203,8 @@ impl Struct { | |||
203 | def_id_to_ast(db, self.def_id) | 203 | def_id_to_ast(db, self.def_id) |
204 | } | 204 | } |
205 | 205 | ||
206 | pub fn generics(&self, db: &impl HirDatabase) -> Arc<Generics> { | 206 | pub fn generic_params(&self, db: &impl HirDatabase) -> Arc<GenericParams> { |
207 | db.generics(self.def_id) | 207 | db.generic_params(self.def_id) |
208 | } | 208 | } |
209 | } | 209 | } |
210 | 210 | ||
@@ -234,8 +234,8 @@ impl Enum { | |||
234 | def_id_to_ast(db, self.def_id) | 234 | def_id_to_ast(db, self.def_id) |
235 | } | 235 | } |
236 | 236 | ||
237 | pub fn generics(&self, db: &impl HirDatabase) -> Arc<Generics> { | 237 | pub fn generic_params(&self, db: &impl HirDatabase) -> Arc<GenericParams> { |
238 | db.generics(self.def_id) | 238 | db.generic_params(self.def_id) |
239 | } | 239 | } |
240 | } | 240 | } |
241 | 241 | ||
@@ -349,8 +349,8 @@ impl Function { | |||
349 | db.infer(self.def_id) | 349 | db.infer(self.def_id) |
350 | } | 350 | } |
351 | 351 | ||
352 | pub fn generics(&self, db: &impl HirDatabase) -> Arc<Generics> { | 352 | pub fn generic_params(&self, db: &impl HirDatabase) -> Arc<GenericParams> { |
353 | db.generics(self.def_id) | 353 | db.generic_params(self.def_id) |
354 | } | 354 | } |
355 | } | 355 | } |
356 | 356 | ||
@@ -398,8 +398,8 @@ impl Trait { | |||
398 | def_id_to_ast(db, self.def_id) | 398 | def_id_to_ast(db, self.def_id) |
399 | } | 399 | } |
400 | 400 | ||
401 | pub fn generics(&self, db: &impl HirDatabase) -> Arc<Generics> { | 401 | pub fn generic_params(&self, db: &impl HirDatabase) -> Arc<GenericParams> { |
402 | db.generics(self.def_id) | 402 | db.generic_params(self.def_id) |
403 | } | 403 | } |
404 | } | 404 | } |
405 | 405 | ||
@@ -417,7 +417,7 @@ impl Type { | |||
417 | def_id_to_ast(db, self.def_id) | 417 | def_id_to_ast(db, self.def_id) |
418 | } | 418 | } |
419 | 419 | ||
420 | pub fn generics(&self, db: &impl HirDatabase) -> Arc<Generics> { | 420 | pub fn generic_params(&self, db: &impl HirDatabase) -> Arc<GenericParams> { |
421 | db.generics(self.def_id) | 421 | db.generic_params(self.def_id) |
422 | } | 422 | } |
423 | } | 423 | } |