mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
parent
d9a1b610a7
commit
b96bea4f0d
2 changed files with 171 additions and 169 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -162,7 +162,7 @@ impl Generator for AstKindGenerator {
|
|||
format_ident!("as_{}", ident.to_string().to_case(Case::Snake));
|
||||
parse_quote!(
|
||||
///@@line_break
|
||||
pub fn #snake_case_name(&self) -> Option<&#typ> {
|
||||
pub fn #snake_case_name(&self) -> Option<&'a #typ> {
|
||||
if let Self::#ident(v) = self {
|
||||
Some(*v)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue