diff options
author | Aleksey Kladov <[email protected]> | 2019-01-11 17:28:10 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-11 17:28:10 +0000 |
commit | 0f9c350812e37b3cf2a1fcfb3c60a78122d60bf7 (patch) | |
tree | ffebbf98cbc633732a4a563288cc0e924bb03c5b /crates/ra_hir/src | |
parent | 2d3940d0ab862dbfaed4f4c844faaca6a38e31e9 (diff) |
add missing def kinds
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index 098c7f40b..3f882a736 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -328,3 +328,23 @@ impl Function { | |||
328 | db.infer(self.def_id) | 328 | db.infer(self.def_id) |
329 | } | 329 | } |
330 | } | 330 | } |
331 | |||
332 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||
333 | pub struct Const { | ||
334 | pub(crate) def_id: DefId, | ||
335 | } | ||
336 | |||
337 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||
338 | pub struct Static { | ||
339 | pub(crate) def_id: DefId, | ||
340 | } | ||
341 | |||
342 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||
343 | pub struct Trait { | ||
344 | pub(crate) def_id: DefId, | ||
345 | } | ||
346 | |||
347 | #[derive(Debug, Clone, PartialEq, Eq, Hash)] | ||
348 | pub struct Type { | ||
349 | pub(crate) def_id: DefId, | ||
350 | } | ||