mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 04:19:13 +00:00
Rename *Owner
traits to Has*
This commit is contained in:
parent
a28c5d7311
commit
b6ed91a6de
101 changed files with 393 additions and 397 deletions
|
@ -740,14 +740,14 @@ fn extract_enums(ast: &mut AstSrc) {
|
|||
|
||||
fn extract_struct_traits(ast: &mut AstSrc) {
|
||||
let traits: &[(&str, &[&str])] = &[
|
||||
("AttrsOwner", &["attrs"]),
|
||||
("NameOwner", &["name"]),
|
||||
("VisibilityOwner", &["visibility"]),
|
||||
("GenericParamsOwner", &["generic_param_list", "where_clause"]),
|
||||
("TypeBoundsOwner", &["type_bound_list", "colon_token"]),
|
||||
("ModuleItemOwner", &["items"]),
|
||||
("LoopBodyOwner", &["label", "loop_body"]),
|
||||
("ArgListOwner", &["arg_list"]),
|
||||
("HasAttrs", &["attrs"]),
|
||||
("HasName", &["name"]),
|
||||
("HasVisibility", &["visibility"]),
|
||||
("HasGenericParams", &["generic_param_list", "where_clause"]),
|
||||
("HasTypeBounds", &["type_bound_list", "colon_token"]),
|
||||
("HasModuleItem", &["items"]),
|
||||
("HasLoopBody", &["label", "loop_body"]),
|
||||
("HasArgList", &["arg_list"]),
|
||||
];
|
||||
|
||||
for node in &mut ast.nodes {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue