oxc/crates/oxc_semantic/src
overlookmotel 25f0771185 refactor(semantic): alter syntax of control_flow! macro (#4275)
Previously:

```rs
let ix = control_flow!(|self, cfg| cfg.current_node_ix);
```

after this PR:

```rs
let ix = control_flow!(self, |cfg| cfg.current_node_ix);
```

It expands to:

```rs
let ix = if let Some(ref mut cfg) = self.cfg {
    cfg.current_node_ix
} else {
    Default::default()
};
```

So rationale for this change is that it makes it clearer that `self` is passed *in* and `cfg` comes *out* into the "closure".
2024-07-15 14:31:04 +00:00
..
checker refactor(ast): move enter_scope after visit_binding_identifier (#4246) 2024-07-14 04:06:02 +00:00
class perf: do not pass &Atom to functions (#3818) 2024-06-22 04:48:00 +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 refactor(semantic): update the order of visit_function and Visit fields in the builder to be consistent (#4248) 2024-07-14 11:39:15 +00:00
builder.rs refactor(semantic): alter syntax of control_flow! macro (#4275) 2024-07-15 14:31:04 +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 Revert "perf(semantic): use Atom<'a> for References" (#3974) 2024-06-29 15:55:04 +00:00
node.rs refactor(semantic)!: simplify node creation (#4226) 2024-07-13 02:19:02 +00:00
reference.rs Revert "perf(semantic): use Atom<'a> for References" (#3974) 2024-06-29 15:55:04 +00:00
scope.rs refactor(semantic): directly record current_node_id when adding a scope (#4265) 2024-07-15 03:02:18 +00:00
symbol.rs Revert "perf(semantic): use Atom<'a> for References" (#3974) 2024-06-29 15:55:04 +00:00