dillon1000/react

Commit

[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.
Browse files
Changed paths5 files
First-parent comparison
M compiler/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] Added
Patch

Files changed

Rendering syntax-highlighted changes…