oxc/napi/transform/src
overlookmotel 3230ae5842 feat(semantic): add SemanticBuilder::with_excess_capacity (#5762)
Add `SemanticBuilder::with_excess_capacity` method to request that `SemanticBuilder` over-allocate space in `Semantic`'s `Vec`s.

Use this method to reserve 200% extra capacity for transformer to create more scopes, symbols and references.

200% is an unscientific guess of how much extra capacity is required. Obviously it depends on what transforms are enabled and content of the source code.
2024-09-14 15:02:16 +00:00
..
context.rs chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
isolated_declaration.rs chore: run cargo +nightly fmt to sort imports (#5503) 2024-09-06 04:04:26 +00:00
lib.rs feat(napi/transform): align output SourceMap with Rollup's ExistingRawSourceMap (#5657) 2024-09-09 15:55:23 +00:00
options.rs fix(napi/transformer): refresh plugin doesn't work even after passing the refresh option (#5702) 2024-09-11 12:39:51 +00:00
sourcemap.rs feat(napi/transform): align output SourceMap with Rollup's ExistingRawSourceMap (#5657) 2024-09-09 15:55:23 +00:00
transformer.rs feat(semantic): add SemanticBuilder::with_excess_capacity (#5762) 2024-09-14 15:02:16 +00:00