Skip to content

Commit

Permalink
Revise tests to expect attr_item for custom attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
ninevra committed Nov 14, 2020
1 parent df3351e commit 6f5e5fb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions corpus/declarations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ fn accumulate(self) -> Machine<{State::Accumulate}> {}
name: (identifier)
parameters: (parameters
(attribute_item
(meta_item
(attr_item
(identifier)))
(parameter
pattern: (identifier)
type: (primitive_type))
(attribute_item
(meta_item
(attr_item
(identifier)))
(parameter
pattern: (identifier)
Expand Down Expand Up @@ -397,7 +397,7 @@ struct Inches(i32);
(field_declaration (visibility_modifier) (field_identifier) (primitive_type))))
(struct_item (type_identifier) (field_declaration_list
(field_declaration (field_identifier) (primitive_type))
(attribute_item (meta_item (identifier)))
(attribute_item (attr_item (identifier)))
(field_declaration (field_identifier) (primitive_type))))
(struct_item (type_identifier) (ordered_field_declaration_list
(visibility_modifier) (primitive_type) (primitive_type) (primitive_type)))
Expand Down Expand Up @@ -509,8 +509,8 @@ pub enum Node<T: Item> {
(type_arguments
(generic_type (type_identifier) (type_arguments (type_identifier))))))
(field_declaration (field_identifier) (primitive_type))))
(attribute_item (meta_item (identifier)))
(attribute_item (meta_item (identifier)))
(attribute_item (attr_item (identifier)))
(attribute_item (attr_item (identifier)))
(enum_variant
(identifier)
(field_declaration_list
Expand Down Expand Up @@ -786,7 +786,7 @@ mod macos_only {}
path: (identifier)
name: (identifier))))))

(attribute_item (meta_item
(attribute_item (attr_item
(scoped_identifier
path: (identifier)
name: (identifier))
Expand Down Expand Up @@ -929,14 +929,14 @@ fn foo() {
(let_declaration
pattern: (identifier)
value: (array_expression
(attribute_item (meta_item (identifier)))
(attribute_item (attr_item (identifier)))
(integer_literal)
(integer_literal)
(integer_literal)))
(let_declaration
pattern: (identifier)
value: (tuple_expression
(attribute_item (meta_item (identifier)))
(attribute_item (attr_item (identifier)))
(integer_literal)
(integer_literal)
(integer_literal))))))
Expand Down
2 changes: 1 addition & 1 deletion corpus/expressions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ let msg = match x {
value: (integer_literal))
(match_arm
(attribute_item
(meta_item
(attr_item
(identifier)))
pattern: (match_pattern
(integer_literal))
Expand Down

0 comments on commit 6f5e5fb

Please sign in to comment.