diff options
author | Lenard Pratt <[email protected]> | 2019-03-30 11:17:31 +0000 |
---|---|---|
committer | Lenard Pratt <[email protected]> | 2019-04-02 19:21:36 +0100 |
commit | 88e22e9d70ac3a35989ad1d45386f86697877c4c (patch) | |
tree | 274537eb5913369a7f226aca534fbf3821395181 /crates/ra_hir/src/expr | |
parent | 7f3bf7cc738d02fde80d4fde9f32cbbe72896b87 (diff) |
Added const bodies and static body to the ast
and added inference the inference test
reduce code duplication
Diffstat (limited to 'crates/ra_hir/src/expr')
-rw-r--r-- | crates/ra_hir/src/expr/scope.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_hir/src/expr/scope.rs b/crates/ra_hir/src/expr/scope.rs index 539da06c3..9d6b1eb2b 100644 --- a/crates/ra_hir/src/expr/scope.rs +++ b/crates/ra_hir/src/expr/scope.rs | |||
@@ -10,7 +10,7 @@ use ra_syntax::{ | |||
10 | use ra_arena::{Arena, RawId, impl_arena_id}; | 10 | use ra_arena::{Arena, RawId, impl_arena_id}; |
11 | 11 | ||
12 | use crate::{ | 12 | use crate::{ |
13 | Name, AsName, Function,DefWithBody, | 13 | Name, AsName,DefWithBody, |
14 | expr::{PatId, ExprId, Pat, Expr, Body, Statement, BodySourceMap}, | 14 | expr::{PatId, ExprId, Pat, Expr, Body, Statement, BodySourceMap}, |
15 | HirDatabase, | 15 | HirDatabase, |
16 | }; | 16 | }; |
@@ -297,6 +297,7 @@ mod tests { | |||
297 | use ra_syntax::{SourceFile, algo::find_node_at_offset}; | 297 | use ra_syntax::{SourceFile, algo::find_node_at_offset}; |
298 | use test_utils::{extract_offset, assert_eq_text}; | 298 | use test_utils::{extract_offset, assert_eq_text}; |
299 | use ra_arena::ArenaId; | 299 | use ra_arena::ArenaId; |
300 | use crate::{Function}; | ||
300 | 301 | ||
301 | use crate::expr; | 302 | use crate::expr; |
302 | 303 | ||