-
I want to get owned |
Beta Was this translation helpful? Give feedback.
Answered by
Boshen
Mar 12, 2024
Replies: 1 comment
-
The transformer mutates the AST, for example oxc/crates/oxc_transformer/src/es2022/class_static_block.rs Lines 77 to 101 in 86ee074 Mutating a lifetimed struct with allocators in Rust is kind of painful, so ideally you want to use a builder pattern for the AST nodes https://github.com/oxc-project/oxc/blob/main/crates/oxc_ast/src/ast_builder.rs |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LIMPIX31
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The transformer mutates the AST, for example
oxc/crates/oxc_transformer/src/es2022/class_static_block.rs
Lines 77 to 101 in 86ee074