dillon1000/react

Commit

[rust][sema] For statements and JSX

Adds semantic analysis support for normal `for` statements and for JSX. The main 
catch with JSX is that there are a bunch of identifiers that we have to ignore 
since they aren't variable references: jsx attribute names, namespace names, jsx 
member expression properties, and closing elements.
Browse files
Changed paths7 files
First-parent comparison
M compiler/forget/crates/forget_estree/src/generated_extensions.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/analyzer.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/scope_manager.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/tests/analysis_test.rs ModifiedA compiler/forget/crates/forget_semantic_analysis/tests/fixtures/globals-and-imports.js AddedA compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] AddedR compiler/forget/crates/forget_semantic_analysis/tests/snapshots/analysis_test__fixtures.snap →compiler/forget/crates/forget_semantic_analysis/tests/snapshots/[email protected] Renamed
Patch

Files changed

Rendering syntax-highlighted changes…