dillon1000/react

Commit

Increase precision in InferMutableRangesForAlias

Previously, this step just set the mutable range of any alias set including any 

mutation to the end of the last mutable range of any of the containing 
identifiers. 

This change makes it so that the ends are only updated of the ranges that end 

before the last mutation. 

Fixes #852
Browse files
Changed paths10 files
First-parent comparison
M compiler/forget/src/HIR/InferMutableRangesForAlias.ts ModifiedM compiler/forget/src/__tests__/fixtures/hir/component.expect.md ModifiedA compiler/forget/src/__tests__/fixtures/hir/issue852.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/issue852.js AddedM compiler/forget/src/__tests__/fixtures/hir/ssa-complex-multiple-if.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-complex-single-if.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-simple-phi.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/ssa-switch.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/switch-non-final-default.expect.md ModifiedM compiler/forget/src/__tests__/fixtures/hir/switch.expect.md Modified
Patch

Files changed

Rendering syntax-highlighted changes…