Lines Matching full:quote
15 use quote::{format_ident, quote};
105 quote! { in write()
135 quote! { #name, } in instruction_output()
138 quote! { #name: #ty, } in instruction_output()
140 quote! { in instruction_output()
155 quote! { in instruction_output()
161 quote! { in instruction_output()
166 quote! { in instruction_output()
188 quote! {} in instruction_output()
197 Some(quote! { Self::#name { result_id, .. } }) in instruction_output()
204 quote! { in instruction_output()
221 quote! { in instruction_output()
273 Some('?') => quote! { Option<#ty> }, in instruction_members()
274 Some('*') => quote! { Vec<#ty> }, in instruction_members()
278 Some('?') => quote! { in instruction_members()
285 Some('*') => quote! {{ in instruction_members()
337 quote! { in bit_enum_output()
341 quote! { in bit_enum_output()
346 quote! { #ty } in bit_enum_output()
348 quote! { in bit_enum_output()
362 quote! { in bit_enum_output()
367 quote! { #parse } in bit_enum_output()
370 quote! { (#(#parse),*) } in bit_enum_output()
373 quote! { in bit_enum_output()
384 quote! { in bit_enum_output()
404 quote! { in bit_enum_output()
479 quote! { in value_enum_output()
484 quote! { #name: #ty, } in value_enum_output()
486 quote! { in value_enum_output()
502 quote! { in value_enum_output()
508 quote! { in value_enum_output()
513 quote! { in value_enum_output()
524 "ExecutionModel" => quote! { #[derive(Clone, Copy, Debug, Hash, PartialEq, Eq)] }, in value_enum_output()
525 "Decoration" => quote! { #[derive(Clone, Debug, PartialEq, Eq)] }, in value_enum_output()
526 _ => quote! { #[derive(Clone, Copy, Debug, PartialEq, Eq)] }, in value_enum_output()
529 quote! { in value_enum_output()
548 quote! { in value_enum_output()
631 (quote! { Vec<u32> }, quote! { reader.remainder() }) in kinds_to_types()
634 (quote! { u32 }, quote! { reader.next_u32()? }) in kinds_to_types()
636 "LiteralInt64" => (quote! { u64 }, quote! { reader.next_u64()? }), in kinds_to_types()
638 quote! { f32 }, in kinds_to_types()
639 quote! { f32::from_bits(reader.next_u32()?) }, in kinds_to_types()
642 quote! { f64 }, in kinds_to_types()
643 quote! { f64::from_bits(reader.next_u64()?) }, in kinds_to_types()
646 quote! { SpecConstantInstruction }, in kinds_to_types()
647 quote! { SpecConstantInstruction::parse(reader)? }, in kinds_to_types()
649 "LiteralString" => (quote! { String }, quote! { reader.next_string()? }), in kinds_to_types()
651 quote! { (Id, Id) }, in kinds_to_types()
652 quote! { in kinds_to_types()
660 quote! { (Id, u32) }, in kinds_to_types()
661 quote! { in kinds_to_types()
669 quote! { (u32, Id) }, in kinds_to_types()
670 quote! { in kinds_to_types()
676 _ if k.kind.starts_with("Id") => (quote! { Id }, quote! { Id(reader.next_u32()?) }), in kinds_to_types()
679 (quote! { #ident }, quote! { #ident::parse(reader)? }) in kinds_to_types()