Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/tests/sourcegen_ast.rs')
-rw-r--r--crates/syntax/src/tests/sourcegen_ast.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/crates/syntax/src/tests/sourcegen_ast.rs b/crates/syntax/src/tests/sourcegen_ast.rs
index 8897c29722..564cf6663c 100644
--- a/crates/syntax/src/tests/sourcegen_ast.rs
+++ b/crates/syntax/src/tests/sourcegen_ast.rs
@@ -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 {