dillon1000/react
Commit
Browse files [rust][sema] Support hoisting semantics
Adds basic support for hoisting semantics: * Resolution of variable references is _always_ deferred in case the correct binding hasn't been seet yet due to hoisting. * Var and function declarations bubble to the appropriate scope There are lots of subtleties that aren't implemented yet but these rules cover a lot.
Changed paths5 files
First-parent comparisoncompiler/forget/crates/forget_semantic_analysis/src/analyzer.rs ModifiedM compiler/forget/crates/forget_semantic_analysis/src/scope_manager.rs ModifiedA compiler/forget/crates/forget_semantic_analysis/tests/fixtures/var-hoisting.js AddedM 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…