oxc/crates
overlookmotel 341e42ac4c refactor(traverse): make Ancestor an owned type (#5269)
Make the `Ancestor` type used in `oxc_traverse` an owned type. Instead of `TraverseCtx::parent` returning a `&'t Ancestor<'a>`, it now returns an `Ancestor<'a, 't>`.

This allows `Ancestor` to be `Copy`.

The `'t` lifetime plays the same role in both cases - preventing any `Ancestor` from escaping from the `enter_*` / `exit_*` method in which it's obtained.

Same for the `*Without*` types which are `Ancestor` enum's "payloads". Any AST node references obtained from an `Ancestor` are also constrained by same `'t` lifetime - e.g. `&'t Statement<'a>`.
2024-08-28 01:07:10 +00:00
..
oxc Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_allocator Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_ast chore: switch playground to https://github.com/oxc-project/playground (#5249) 2024-08-27 15:14:36 +08:00
oxc_ast_macros Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_cfg Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_codegen perf(codegen): inline Codegen::print_list (#5221) 2024-08-26 10:28:49 +00:00
oxc_diagnostics fix(diagnostics): improve "file is too long to fit on the screen" (#5120) 2024-08-23 11:17:12 +00:00
oxc_index Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_isolated_declarations feat(ast,parser): add definite flag to AccessorProperty node (#5182) 2024-08-25 01:02:50 +00:00
oxc_language_server refactor(parser)!: remove builder pattern from Parser struct (#5000) 2024-08-20 07:40:25 +00:00
oxc_linter feat(linter/unicorn): add fixer to throw-new-error (#5275) 2024-08-27 20:51:35 +00:00
oxc_macros chore(linter): update docs for declare_oxc_lint! (#4825) 2024-08-11 15:27:54 +00:00
oxc_mangler Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_minifier Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_module_lexer feat(module_lexer): distinguish for types-only imports and exports (#5184) 2024-08-25 18:22:44 +08:00
oxc_parser refactor(parser): improve example for byte_search! macro usage (#5234) 2024-08-26 14:22:37 +00:00
oxc_prettier perf(wasm): reuse parse result for prettier (#5254) 2024-08-27 16:56:18 +08:00
oxc_regular_expression feat(regular_expression): Validate max quantifier value (#5218) 2024-08-26 07:11:04 +00:00
oxc_semantic refactor(semantic): combine add scope methods (#5262) 2024-08-27 13:00:21 +00:00
oxc_sourcemap Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_span feat(span/source-type): add SourceType factory methods (#5242) 2024-08-27 01:19:54 +00:00
oxc_syntax Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_transformer chore: bump rustc to v1.80.1 (#5211) 2024-08-26 13:11:29 +08:00
oxc_traverse refactor(traverse): make Ancestor an owned type (#5269) 2024-08-28 01:07:10 +00:00
oxc_wasm fix(wasm): reference ast from prettier (#5268) 2024-08-27 22:15:26 +08:00