mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Add make::glob_use_tree function to create star-only UseTree
This commit is contained in:
parent
b874721752
commit
45298b5d2a
2 changed files with 7 additions and 11 deletions
|
@ -38,6 +38,10 @@ pub fn path_from_text(text: &str) -> ast::Path {
|
|||
ast_from_text(text)
|
||||
}
|
||||
|
||||
pub fn glob_use_tree() -> ast::UseTree {
|
||||
ast_from_text("use *;")
|
||||
}
|
||||
|
||||
pub fn use_tree(
|
||||
path: ast::Path,
|
||||
use_tree_list: Option<ast::UseTreeList>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue