oxc/crates/oxc_semantic/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
..
checker refactor(semantic): re-order use statements (#5712) 2024-09-11 20:41:49 +00:00
class refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
jsdoc refactor(semantic): re-order use statements (#5712) 2024-09-11 20:41:49 +00:00
module_record feat(span)!: change SourceType::js to SourceType::cjs and SourceType::mjs (#5606) 2024-09-08 14:11:02 +00:00
binder.rs refactor(semantic): re-order use statements (#5712) 2024-09-11 20:41:49 +00:00
builder.rs feat(semantic): add SemanticBuilder::with_excess_capacity (#5762) 2024-09-14 15:02:16 +00:00
diagnostics.rs refactor(linter): improve diagnostic labeling (#3960) 2024-06-29 05:19:22 +00:00
dot.rs refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
label.rs refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
lib.rs feat(semantic): expose Stats (#5755) 2024-09-13 12:19:54 +00:00
node.rs refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
post_transform_checker.rs refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
reference.rs refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
scope.rs refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
stats.rs feat(semantic): add SemanticBuilder::with_excess_capacity (#5762) 2024-09-14 15:02:16 +00:00
symbol.rs refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
unresolved_stack.rs refactor(semantic): re-order use statements (#5712) 2024-09-11 20:41:49 +00:00