mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
Added const bodies and static body to the ast
and added inference the inference test reduce code duplication
This commit is contained in:
parent
7f3bf7cc73
commit
88e22e9d70
10 changed files with 180 additions and 91 deletions
|
@ -10,7 +10,7 @@ use ra_syntax::{
|
|||
use ra_arena::{Arena, RawId, impl_arena_id};
|
||||
|
||||
use crate::{
|
||||
Name, AsName, Function,DefWithBody,
|
||||
Name, AsName,DefWithBody,
|
||||
expr::{PatId, ExprId, Pat, Expr, Body, Statement, BodySourceMap},
|
||||
HirDatabase,
|
||||
};
|
||||
|
@ -297,6 +297,7 @@ mod tests {
|
|||
use ra_syntax::{SourceFile, algo::find_node_at_offset};
|
||||
use test_utils::{extract_offset, assert_eq_text};
|
||||
use ra_arena::ArenaId;
|
||||
use crate::{Function};
|
||||
|
||||
use crate::expr;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue