/// Construct a new identifier from the given string.
///
/// This does not panic when called outside of a macro but requires access
/// to a `span` and `storage`.
Construct a new identifier from the given string.
This does not panic when called outside of a macro but requires access
to a `span` and `storage`.
Construct a new identifier from the given string . This does not panic when called outside of a macro but requires access to a ` span ` and ` storage ` .
pub(crate) fn new_with(ident: &str, span: Span, storage: &Storage) -> ast::Ident {
        let id = storage.insert_str(ident);
        let source = ast::StringSource::Synthetic(id);
        ast::Ident {
            token: ast::Token {
                span,
                kind: ast::Kind::Ident(source),
            },
            source,
        }
    }
pub ( crate ) fn new_with ( ident : & str , span : Span , storage : & Storage ) -> ast :: Ident { let id = storage . insert_str ( ident ) ; let source = ast :: StringSource :: Synthetic ( id ) ; ast :: Ident { token : ast :: Token { span , kind : ast :: Kind :: Ident ( source ) , } , source , } }
Construct a new identifier from the given string.
Construct a new identifier from the given string .
ident
&str
span
Span
storage
&Storage