Lines Matching refs:quote
4 use quote::{format_ident, quote};
24 Data::Enum(variants) if variants.is_empty() => quote!(match *self {}),
29 quote! {
46 quote!(TokenStreamHelper(#this) == TokenStreamHelper(#other))
49 quote!(#this.to_string() == #other.to_string())
51 _ => quote!(#this == #other),
57 comparisons.push(quote!(true));
63 cfg = Some(quote!(#[cfg(feature = "full")]));
67 quote! {
78 Some(quote!(_ => false,))
80 quote! {
96 quote!(TokenStreamHelper(&self.#ident) == TokenStreamHelper(&other.#ident))
98 _ => quote!(self.#ident == other.#ident),
102 quote!(true)
104 quote!(#(#comparisons)&&*)
119 let eq = quote! {
131 Data::Enum(variants) if variants.is_empty() => quote!(_other),
132 Data::Struct(fields) if fields.values().all(always_eq) => quote!(_other),
133 _ => quote!(other),
136 quote! {
156 quote! {