oxc/crates/oxc_semantic
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
..
examples refactor(semantic)!: remove source_type argument from SemanticBuilder::new (#5553) 2024-09-06 16:40:10 +00:00
src feat(semantic): add SemanticBuilder::with_excess_capacity (#5762) 2024-09-14 15:02:16 +00:00
tests feat(oxc_cfg): better control flow graph dot dot repr (#5731) 2024-09-12 18:39:01 +00:00
Cargo.toml release(crates): v0.29.0 (#5763) 2024-09-13 21:43:23 +08:00
CHANGELOG.md release(crates): v0.29.0 (#5763) 2024-09-13 21:43:23 +08:00