Lines Matching refs:quote
5 use quote::{format_ident, quote};
15 quote!(syn::#ident)
19 quote!(#ident)
23 quote!(proc_macro2::#ident)
27 quote!(syn::token::#ident)
32 quote!(syn::punctuated::Punctuated<#element, #punct>)
36 quote!(Option<#inner>)
40 quote!(Box<#inner>)
44 quote!(Vec<#inner>)
48 quote!((#(#inner,)*))
69 if let Some(format) = format_field(&Borrowed(quote!(_val)), ty) {
72 quote!({
93 quote! {
105 let inner = Owned(quote!(#val.#index));
112 quote! {
119 quote! { Lite(#val) }
150 Data::Enum(variants) if variants.is_empty() => quote!(unreachable!()),
156 quote! {
164 &Borrowed(quote!(_val)),
166 quote! {
172 let val = quote!(_val);
174 Some(quote! {
182 quote! {
189 quote! {
200 let val = quote!(#index);
202 Some(quote! {
206 quote! {
218 Some(quote!(_ => unreachable!()))
221 quote! {
232 Some(if let Some(format) = format_field(&Owned(quote!(self.0)), ty) {
235 quote! {
253 quote! {
261 let inner = Owned(quote!(#val.#ident));
263 let mut call = quote! {
269 call = quote! {
280 call = quote! {
295 quote! {
304 quote! {
309 quote! {
319 let body = expand_impl_body(defs, node, &node.ident, &Owned(quote!(self.value)));
321 Data::Enum(variants) if variants.is_empty() => quote!(_formatter),
322 _ => quote!(formatter),
325 quote! {
338 quote! {
358 quote! {