Lines Matching refs:attrs
15 pub attrs: attr::Container, field
35 pub attrs: attr::Variant, field
44 pub attrs: attr::Field, field
68 let mut attrs = attr::Container::from_ast(cx, item); in from_ast() localVariable
71 syn::Data::Enum(data) => Data::Enum(enum_from_ast(cx, &data.variants, attrs.default())), in from_ast()
73 let (style, fields) = struct_from_ast(cx, &data.fields, None, attrs.default()); in from_ast()
86 variant.attrs.rename_by_rules(attrs.rename_all_rules()); in from_ast()
88 if field.attrs.flatten() { in from_ast()
92 .attrs in from_ast()
93 .rename_by_rules(variant.attrs.rename_all_rules()); in from_ast()
99 if field.attrs.flatten() { in from_ast()
102 field.attrs.rename_by_rules(attrs.rename_all_rules()); in from_ast()
108 attrs.mark_has_flatten(); in from_ast()
113 attrs, in from_ast()
134 self.all_fields().any(|f| f.attrs.getter().is_some()) in has_getter()
146 let attrs = attr::Variant::from_ast(cx, variant); in enum_from_ast() localVariable
148 struct_from_ast(cx, &variant.fields, Some(&attrs), container_default); in enum_from_ast()
151 attrs, in enum_from_ast()
163 attrs: Option<&attr::Variant>, in struct_from_ast()
169 fields_from_ast(cx, &fields.named, attrs, container_default), in struct_from_ast()
173 fields_from_ast(cx, &fields.unnamed, attrs, container_default), in struct_from_ast()
177 fields_from_ast(cx, &fields.unnamed, attrs, container_default), in struct_from_ast()
186 attrs: Option<&attr::Variant>, in fields_from_ast()
197 attrs: attr::Field::from_ast(cx, i, field, attrs, container_default), in fields_from_ast()