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.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir_def/src/body.rs b/crates/ra_hir_def/src/body.rs
index d4cab0561..332c509e1 100644
--- a/crates/ra_hir_def/src/body.rs
+++ b/crates/ra_hir_def/src/body.rs
@@ -17,7 +17,7 @@ use crate::{
17 nameres::{BuiltinShadowMode, CrateDefMap}, 17 nameres::{BuiltinShadowMode, CrateDefMap},
18 path::{ModPath, Path}, 18 path::{ModPath, Path},
19 src::HasSource, 19 src::HasSource,
20 DefWithBodyId, HasModule, Lookup, ModuleId, 20 DefWithBodyId, HasModule, Lookup, ModuleDefId, ModuleId,
21}; 21};
22 22
23struct Expander { 23struct Expander {
@@ -119,6 +119,7 @@ pub struct Body {
119 pub params: Vec<PatId>, 119 pub params: Vec<PatId>,
120 /// The `ExprId` of the actual body expression. 120 /// The `ExprId` of the actual body expression.
121 pub body_expr: ExprId, 121 pub body_expr: ExprId,
122 pub defs: Vec<ModuleDefId>,
122} 123}
123 124
124pub type ExprPtr = Either<AstPtr<ast::Expr>, AstPtr<ast::RecordField>>; 125pub type ExprPtr = Either<AstPtr<ast::Expr>, AstPtr<ast::RecordField>>;