|
1 | | -use crate::context::{AnalyzerContext, CallType, FunctionBody}; |
2 | | -use crate::db::{Analysis, AnalyzerDb}; |
3 | | -use crate::display::Displayable; |
4 | | -use crate::errors::TypeError; |
5 | | -use crate::namespace::items::{ |
6 | | - DepGraph, DepGraphWrapper, DepLocality, FunctionId, FunctionSigId, Item, TypeDef, |
| 1 | +use crate::{ |
| 2 | + context::{AnalyzerContext, CallType, FunctionBody}, |
| 3 | + db::{Analysis, AnalyzerDb}, |
| 4 | + display::Displayable, |
| 5 | + errors::TypeError, |
| 6 | + namespace::{ |
| 7 | + items::{DepGraph, DepGraphWrapper, DepLocality, FunctionId, FunctionSigId, Item, TypeDef}, |
| 8 | + scopes::{BlockScope, BlockScopeType, FunctionScope, ItemScope}, |
| 9 | + types::{self, CtxDecl, Generic, SelfDecl, Type, TypeId}, |
| 10 | + }, |
| 11 | + traversal::{ |
| 12 | + functions::traverse_statements, |
| 13 | + types::{type_desc, type_desc_to_trait}, |
| 14 | + }, |
7 | 15 | }; |
8 | | -use crate::namespace::scopes::{BlockScope, BlockScopeType, FunctionScope, ItemScope}; |
9 | | -use crate::namespace::types::{self, CtxDecl, Generic, SelfDecl, Type, TypeId}; |
10 | | -use crate::traversal::functions::traverse_statements; |
11 | | -use crate::traversal::types::{type_desc, type_desc_to_trait}; |
12 | 16 | use fe_common::diagnostics::Label; |
13 | | -use fe_parser::ast::{self, GenericParameter}; |
14 | | -use fe_parser::node::Node; |
| 17 | +use fe_parser::{ |
| 18 | + ast::{self, GenericParameter}, |
| 19 | + node::Node, |
| 20 | +}; |
15 | 21 | use if_chain::if_chain; |
16 | 22 | use smol_str::SmolStr; |
17 | | -use std::collections::HashMap; |
18 | | -use std::rc::Rc; |
| 23 | +use std::{collections::HashMap, rc::Rc}; |
19 | 24 |
|
20 | 25 | /// Gather context information for a function definition and check for type |
21 | 26 | /// errors. Does not inspect the function body. |
|
0 commit comments