oxc/crates/oxc_semantic/src
overlookmotel e70c67b2e2 perf(semantic): remove a branch from add_scope (#4384)
Similar to #4361.

`ScopeTree::add_scope` had a branch specifically to handle `Program`. Remove that by inlining the special logic for `Program` into `visit_program`.

Probably won't have much effect on benchmarks as the branch is easy to predict, but still removes a few instructions and makes `add_scope` easier for compiler to inline.
2024-07-21 12:43:34 +00:00
..
checker refactor(semantic): shorten code (#4358) 2024-07-19 10:29:27 +00:00
class perf: replace some CompactStr usages with Cows (#4377) 2024-07-20 19:19:55 +00:00
jsdoc refactor(semantic): tweak comment argument type (#4157) 2024-07-10 07:19:24 +00:00
module_record fix(semantic): export default foo should have ExportLocalName::Default(NameSpan) entry (#3823) 2024-06-22 11:09:23 +00:00
binder.rs fix(semantic): avoid var hosting insert the var variable to the CatchClause scope (#4337) 2024-07-18 02:52:14 +00:00
builder.rs perf(semantic): remove a branch from add_scope (#4384) 2024-07-21 12:43:34 +00:00
diagnostics.rs refactor(linter): improve diagnostic labeling (#3960) 2024-06-29 05:19:22 +00:00
dot.rs fix(ast)!: rename all instances of BigintLiteral to BigIntLiteral. (#3898) 2024-06-25 14:39:42 +00:00
label.rs refactor(semantic): checking label in ContinueStatement based on LabelBuilder (#2202) 2024-01-29 18:24:42 +08:00
lib.rs fix(semantic): resolve references to the incorrect symbol (#4280) 2024-07-17 02:50:48 +00:00
node.rs perf(semantic): remove branch from Nodes::add_node (#4361) 2024-07-19 11:34:03 +00:00
reference.rs feat(semantic): add ReferenceFlags::TSTypeQuery to indicate referenced by TSTypeQuery (#4317) 2024-07-17 09:52:57 +00:00
scope.rs perf(semantic): remove a branch from add_scope (#4384) 2024-07-21 12:43:34 +00:00
symbol.rs refactor(semantic): shorten code (#4358) 2024-07-19 10:29:27 +00:00