use proc_macro2::TokenStream;
use quote::{format_ident, quote};
use syn::spanned::Spanned;
use crate::{
diagnostic::{DiagnosticConcreteArgs, DiagnosticDef},
forward::WhichFn,
utils::{display_pat_members, gen_all_variants_with},
};
pub struct SourceCode {
source_code: syn::Member,
}
impl SourceCode {
pub fn from_fields(fields: &syn::Fields) -> syn::Result