aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_def/src/body.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir_def/src/body.rs')
-rw-r--r--crates/ra_hir_def/src/body.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/crates/ra_hir_def/src/body.rs b/crates/ra_hir_def/src/body.rs
index 148ff007e..d3e4c50ae 100644
--- a/crates/ra_hir_def/src/body.rs
+++ b/crates/ra_hir_def/src/body.rs
@@ -19,10 +19,11 @@ use crate::{
19 db::DefDatabase, 19 db::DefDatabase,
20 expr::{Expr, ExprId, Pat, PatId}, 20 expr::{Expr, ExprId, Pat, PatId},
21 item_scope::BuiltinShadowMode, 21 item_scope::BuiltinShadowMode,
22 item_scope::ItemScope,
22 nameres::CrateDefMap, 23 nameres::CrateDefMap,
23 path::{ModPath, Path}, 24 path::{ModPath, Path},
24 src::HasSource, 25 src::HasSource,
25 DefWithBodyId, HasModule, Lookup, ModuleDefId, ModuleId, 26 DefWithBodyId, HasModule, Lookup, ModuleId,
26}; 27};
27 28
28pub(crate) struct Expander { 29pub(crate) struct Expander {
@@ -135,7 +136,7 @@ pub struct Body {
135 pub params: Vec<PatId>, 136 pub params: Vec<PatId>,
136 /// The `ExprId` of the actual body expression. 137 /// The `ExprId` of the actual body expression.
137 pub body_expr: ExprId, 138 pub body_expr: ExprId,
138 pub defs: Vec<ModuleDefId>, 139 pub item_scope: ItemScope,
139} 140}
140 141
141pub type ExprPtr = Either<AstPtr<ast::Expr>, AstPtr<ast::RecordField>>; 142pub type ExprPtr = Either<AstPtr<ast::Expr>, AstPtr<ast::RecordField>>;