|
2 | 2 |
|
3 | 3 | use std::collections::hash_map::Entry; |
4 | 4 |
|
5 | | -use hir_expand::{ast_id_map::AstIdMap, span_map::SpanMapRef}; |
6 | | -use syntax::ast::{HasModuleItem,HasTypeBounds,IsString}; |
| 5 | +use hir_expand::{ |
| 6 | + ast_id_map::AstIdMap, mod_path::path, name, name::AsName, span_map::SpanMapRef,HirFileId, |
| 7 | +}; |
| 8 | +use la_arena::Arena; |
| 9 | +use syntax::{ |
| 10 | + ast::{self,HasModuleItem,HasName,HasTypeBounds,IsString}, |
| 11 | +AstNode, |
| 12 | +}; |
| 13 | +use triomphe::Arc; |
7 | 14 |
|
8 | 15 | usecrate::{ |
9 | | - generics::{GenericParamsCollector,TypeParamData,TypeParamProvenance}, |
10 | | - type_ref::{LifetimeRef,TraitBoundModifier}, |
| 16 | + db::DefDatabase, |
| 17 | + generics::{GenericParams,GenericParamsCollector,TypeParamData,TypeParamProvenance}, |
| 18 | + item_tree::{ |
| 19 | +AssocItem,AttrOwner,Const,Either,Enum,ExternBlock,ExternCrate,Field,FieldAstId, |
| 20 | +Fields,FileItemTreeId,FnFlags,Function,GenericArgs,Idx,IdxRange,Impl,ImportAlias, |
| 21 | +Interned,ItemTree,ItemTreeData,ItemTreeNode,Macro2,MacroCall,MacroRules,Mod, |
| 22 | +ModItem,ModKind,ModPath,Mutability,Name,Param,ParamAstId,Path,Range,RawAttrs, |
| 23 | +RawIdx,RawVisibilityId,Static,Struct,StructKind,Trait,TraitAlias,TypeAlias,Union, |
| 24 | +Use,UseTree,UseTreeKind,Variant, |
| 25 | +}, |
| 26 | + path::AssociatedTypeBinding, |
| 27 | + type_ref::{LifetimeRef,TraitBoundModifier,TraitRef,TypeBound,TypeRef}, |
| 28 | + visibility::RawVisibility, |
11 | 29 | LocalLifetimeParamId,LocalTypeOrConstParamId, |
12 | 30 | }; |
13 | 31 |
|
14 | | -usesuper::*; |
15 | | - |
16 | 32 | fnid<N:ItemTreeNode>(index:Idx<N>) -> FileItemTreeId<N>{ |
17 | 33 | FileItemTreeId(index) |
18 | 34 | } |
|
0 commit comments