dillon1000/react
Commit
Browse files [rust] Update HIR builder to use new semantic analysis
Updates HIR builder to rely on the new semantic analysis instead of assuming that the ast nodes will already have binding info attached. That was a stopgap until we had our own name resolution :-) Once this lands we can remove SWC and switch everything to forget_hermes_parser, and also remove the non-spec Identifier.binding field (which stored the temporary name resolution data).
Changed paths25 files
First-parent comparisoncompiler/forget/Cargo.lock ModifiedM compiler/forget/crates/forget_build_hir/Cargo.toml ModifiedM compiler/forget/crates/forget_build_hir/src/build.rs ModifiedM compiler/forget/crates/forget_build_hir/src/builder.rs ModifiedM compiler/forget/crates/forget_build_hir/src/context.rs ModifiedM compiler/forget/crates/forget_estree/src/generated_extensions.rs ModifiedM compiler/forget/crates/forget_estree/src/lib.rs ModifiedM compiler/forget/crates/forget_fixtures/Cargo.toml ModifiedA compiler/forget/crates/forget_fixtures/tests/fixtures/simple-function.js AddedM compiler/forget/crates/forget_fixtures/tests/fixtures_test.rs ModifiedM compiler/forget/crates/forget_fixtures/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_fixtures/tests/snapshots/[email protected] ModifiedA compiler/forget/crates/forget_fixtures/tests/snapshots/[email protected] AddedM compiler/forget/crates/forget_fixtures/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_hir/Cargo.toml ModifiedM compiler/forget/crates/forget_hir/src/environment.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/analyzer.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/lib.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/scope_manager.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/scope_view.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/analysis_test.rs ModifiedA compiler/forget/crates/forget_semantic_analysis/tests/fixtures/simple-function.js AddedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] ModifiedA compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] AddedPatch
Files changed
Rendering syntax-highlighted changes…