| /third_party/rust/rust/src/tools/rustfmt/src/ |
| D | imports.rs | 36 pub(crate) fn format_import(&mut self, item: &ast::Item, tree: &ast::UseTree) { in format_import() 111 pub(crate) struct UseTree { struct 122 impl PartialEq for UseTree { implementation 127 impl Eq for UseTree {} implementation 129 impl Spanned for UseTree { implementation 214 use_trees: Vec<UseTree>, in normalize_use_trees_with_granularity() 216 ) -> Vec<UseTree> { in normalize_use_trees_with_granularity() 251 use_trees: Vec<UseTree>, in flatten_use_trees() 253 ) -> Vec<UseTree> { in flatten_use_trees() 264 impl fmt::Debug for UseTree { implementation [all …]
|
| D | reorder.rs | 175 fn group_imports(uts: Vec<UseTree>) -> Vec<Vec<UseTree>> { in group_imports()
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/ide-db/src/imports/ |
| D | merge_imports.rs | 59 lhs: &ast::UseTree, in try_merge_trees() 60 rhs: &ast::UseTree, in try_merge_trees() 62 ) -> Option<ast::UseTree> { in try_merge_trees() 69 fn try_merge_trees_mut(lhs: &ast::UseTree, rhs: &ast::UseTree, merge: MergeBehavior) -> Option<()> { in try_merge_trees_mut() 87 fn recursive_merge(lhs: &ast::UseTree, rhs: &ast::UseTree, merge: MergeBehavior) -> Option<()> { in recursive_merge()
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/ide-assists/src/handlers/ |
| D | merge_imports.rs | 107 fn into_either(self) -> Either<ast::Use, ast::UseTree>; in into_either() 114 fn into_either(self) -> Either<ast::Use, ast::UseTree> { in into_either() 119 impl Merge for ast::UseTree { implementation 123 fn into_either(self) -> Either<ast::Use, ast::UseTree> { in into_either()
|
| D | expand_glob_import.rs | 95 ) -> Option<(Either<ast::UseTree, ast::UseTreeList>, ast::Path)> { in find_parent_and_path() 108 fn find_use_tree(n: SyntaxNode) -> Option<(ast::UseTree, ast::Path)> { in find_parent_and_path()
|
| D | generate_enum_variant.rs | 64 UseTree(ast::UseTree), enumerator
|
| /third_party/rust/rust/compiler/rustc_resolve/src/ |
| D | check_unused.rs | 116 fn check_import_as_underscore(&mut self, item: &ast::UseTree, id: ast::NodeId) { in check_import_as_underscore() 134 fn check_imports_as_underscore(&mut self, items: &[(ast::UseTree, ast::NodeId)]) { in check_imports_as_underscore() 168 fn visit_use_tree(&mut self, use_tree: &'a ast::UseTree, id: ast::NodeId, nested: bool) { in visit_use_tree() 202 use_tree: &ast::UseTree, in calc_unused_spans()
|
| D | def_collector.rs | 159 fn visit_use_tree(&mut self, use_tree: &'a UseTree, id: NodeId, _nested: bool) { in visit_use_tree()
|
| /third_party/rust/rust/src/tools/clippy/clippy_lints/src/ |
| D | unsafe_removed_from_name.rs | 40 fn check_use_tree(use_tree: &UseTree, cx: &EarlyContext<'_>, span: Span) { in check_use_tree()
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/ |
| D | item_tree.rs | 551 pub struct UseTree { struct 552 pub index: Idx<ast::UseTree>, argument 553 kind: UseTreeKind, argument 753 index: Idx<ast::UseTree>, in use_tree_to_ast() 754 ) -> ast::UseTree { in use_tree_to_ast() 776 impl UseTree { impl 780 mut cb: impl FnMut(Idx<ast::UseTree>, ModPath, ImportKind, Option<ImportAlias>), in expand() 788 cb: &mut dyn FnMut(Idx<ast::UseTree>, ModPath, ImportKind, Option<ImportAlias>), in expand_impl()
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/item_tree/ |
| D | lower.rs | 705 fn lower_use_tree(&mut self, tree: ast::UseTree) -> Option<UseTree> { in lower_use_tree() 760 fn use_tree(&mut self, kind: UseTreeKind, ast: ast::UseTree) -> UseTree { in use_tree() 769 tree: ast::UseTree, in lower_use_tree() 770 ) -> Option<(UseTree, Arena<ast::UseTree>)> { in lower_use_tree()
|
| D | pretty.rs | 167 fn print_use_tree(&mut self, use_tree: &UseTree) { in print_use_tree()
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/syntax/src/ast/ |
| D | edit_in_place.rs | 343 impl Removable for ast::UseTree { implementation 360 impl ast::UseTree { implementation 429 pub fn add_use_tree(&self, use_tree: ast::UseTree) { in add_use_tree()
|
| D | node_ext.rs | 301 impl ast::UseTree { implementation 308 pub fn parent_use_tree(&self) -> ast::UseTree { in parent_use_tree()
|
| /third_party/rust/rust/src/tools/rust-analyzer/crates/hir-def/src/nameres/ |
| D | diagnostics.rs | 77 index: Idx<ast::UseTree>, in unresolved_import()
|
| /third_party/rust/rust/compiler/rustc_ast_passes/src/ |
| D | node_count.rs | 114 fn visit_use_tree(&mut self, use_tree: &UseTree, id: NodeId, _nested: bool) { in visit_use_tree()
|
| /third_party/rust/rust/compiler/rustc_ast_pretty/src/pprust/state/ |
| D | item.rs | 663 fn print_use_tree(&mut self, tree: &ast::UseTree) { in print_use_tree()
|
| /third_party/rust/rust/compiler/rustc_ast/src/ |
| D | mut_visit.rs | 87 fn visit_use_tree(&mut self, use_tree: &mut UseTree) { in visit_use_tree() 429 pub fn noop_visit_use_tree<T: MutVisitor>(use_tree: &mut UseTree, vis: &mut T) { in noop_visit_use_tree() 430 let UseTree { prefix, kind, span } = use_tree; in noop_visit_use_tree() localVariable
|
| D | visit.rs | 209 fn visit_use_tree(&mut self, use_tree: &'ast UseTree, id: NodeId, _nested: bool) { in visit_use_tree() 446 pub fn walk_use_tree<'a, V: Visitor<'a>>(visitor: &mut V, use_tree: &'a UseTree, id: NodeId) { in walk_use_tree()
|
| D | ast.rs | 2581 pub struct UseTree { struct 2583 pub kind: UseTreeKind, argument 2587 impl UseTree { argument
|
| /third_party/rust/rust/src/tools/clippy/clippy_utils/src/ |
| D | ast_utils.rs | 591 pub fn eq_use_tree(l: &UseTree, r: &UseTree) -> bool { in eq_use_tree()
|
| /third_party/rust/crates/syn/codegen/src/ |
| D | parse.rs | 633 fn load_aliases(use_tree: UseTree, lookup: &mut Lookup) { in load_aliases()
|
| /third_party/rust/rust/compiler/rustc_ast_lowering/src/ |
| D | item.rs | 182 fn lower_item_id_use_tree(&mut self, tree: &UseTree, vec: &mut SmallVec<[hir::ItemId; 1]>) { in lower_item_id_use_tree() 484 tree: &UseTree, in lower_use_tree()
|
| /third_party/rust/crates/syn/src/ |
| D | item.rs | 1316 impl Parse for UseTree { implementation 1317 fn parse(input: ParseStream) -> Result<UseTree> { in parse() 1326 ) -> Result<Option<UseTree>> { in parse_use_tree()
|
| /third_party/rust/rust/compiler/rustc_parse/src/parser/ |
| D | item.rs | 950 fn parse_use_tree(&mut self) -> PResult<'a, UseTree> { in parse_use_tree() argument 1006 fn parse_use_tree_list(&mut self) -> PResult<'a, ThinVec<(UseTree, ast::NodeId)>> { in parse_use_tree_list()
|