anchor_syn/codegen/mod.rs
1pub mod accounts;
2pub mod error;
3pub mod program;
4
5/// Creates an identifier for implementation details emitted by a procedural macro.
6///
7/// Mixed-site hygiene keeps generated bindings distinct from user identifiers with
8/// the same spelling while still allowing generated references to resolve them.
9pub(crate) fn private_ident(name: &str) -> syn::Ident {
10 syn::Ident::new(name, proc_macro2::Span::mixed_site())
11}