oxc/crates
overlookmotel 91343913ca fix(semantic): transform checker check unresolved references (#5096)
Transform checker check root unresolved references.

The transform checker is now checking pretty much everything it can.

Only fields of `ScopeTree` and `SymbolTable` that it's *not* checking are those which contain `AstNodeId`s, because transformer does not create node IDs at present:

* `ScopeTree::node_ids`
* `SymbolTable::declarations`
* `Reference::node_id`

Checking also only proceeds in "from AST" direction.

i.e. for each `SymbolId` which appears in the AST, we check everything about that symbol. But we *don't* go through all the "rows" in `SymbolTable` and check if there are any extra symbols in the table which aren't in the AST.

Presumably transformer will leave a lot of old symbols lying around in `SymbolTable` (ditto scopes and references). We'd need to add `ScopeFlags::Deleted`, `SymbolFlags::Deleted` and `ReferenceFlags::Deleted` for the transformer to be able to "delete" existing symbols.
2024-08-23 07:52:30 +00:00
..
oxc Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_allocator Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_ast Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_ast_macros Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_cfg Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_codegen Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_diagnostics Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_index Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_isolated_declarations Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_language_server refactor(parser)!: remove builder pattern from Parser struct (#5000) 2024-08-20 07:40:25 +00:00
oxc_linter Release oxlint v0.8.0 (#5104) 2024-08-23 11:09:14 +08:00
oxc_macros chore(linter): update docs for declare_oxc_lint! (#4825) 2024-08-11 15:27:54 +00:00
oxc_mangler Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_minifier Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_module_lexer Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_parser Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_prettier refactor(parser)!: remove builder pattern from Parser struct (#5000) 2024-08-20 07:40:25 +00:00
oxc_regular_expression chore(regular_expression): Update example to support RegExp constructor (#5106) 2024-08-23 04:57:32 +00:00
oxc_semantic fix(semantic): transform checker check unresolved references (#5096) 2024-08-23 07:52:30 +00:00
oxc_sourcemap Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_span Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_syntax Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_transformer Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_traverse Release crates v0.25.0 (#5107) 2024-08-23 15:37:36 +08:00
oxc_wasm feat(transformer): always pass in symbols and scopes (#5087) 2024-08-22 16:06:31 +00:00