Home
last modified time | relevance | path

Searched defs:UseTree (Results 1 – 25 of 38) sorted by relevance

12

/third_party/rust/rust/src/tools/rustfmt/src/
Dimports.rs36 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 …]
Dreorder.rs175 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/
Dmerge_imports.rs59 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/
Dmerge_imports.rs107 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()
Dexpand_glob_import.rs95 ) -> 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()
Dgenerate_enum_variant.rs64 UseTree(ast::UseTree), enumerator
/third_party/rust/rust/compiler/rustc_resolve/src/
Dcheck_unused.rs116 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()
Ddef_collector.rs159 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/
Dunsafe_removed_from_name.rs40 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/
Ditem_tree.rs551 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/
Dlower.rs705 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()
Dpretty.rs167 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/
Dedit_in_place.rs343 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()
Dnode_ext.rs301 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/
Ddiagnostics.rs77 index: Idx<ast::UseTree>, in unresolved_import()
/third_party/rust/rust/compiler/rustc_ast_passes/src/
Dnode_count.rs114 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/
Ditem.rs663 fn print_use_tree(&mut self, tree: &ast::UseTree) { in print_use_tree()
/third_party/rust/rust/compiler/rustc_ast/src/
Dmut_visit.rs87 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
Dvisit.rs209 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()
Dast.rs2581 pub struct UseTree { struct
2583 pub kind: UseTreeKind, argument
2587 impl UseTree { argument
/third_party/rust/rust/src/tools/clippy/clippy_utils/src/
Dast_utils.rs591 pub fn eq_use_tree(l: &UseTree, r: &UseTree) -> bool { in eq_use_tree()
/third_party/rust/crates/syn/codegen/src/
Dparse.rs633 fn load_aliases(use_tree: UseTree, lookup: &mut Lookup) { in load_aliases()
/third_party/rust/rust/compiler/rustc_ast_lowering/src/
Ditem.rs182 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/
Ditem.rs1316 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/
Ditem.rs950 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()

12