dillon1000/react
Commit
Browse files [hir] Introduce ValueKind.Context
This tracks whether a value is a context ref or generated from a context ref. This lets us track mutations to context refs and treat it separately as we want this to be more conservative than our existing inference. ValueKind.Context is exactly like ValueKind.Mutable but is more conservative.
Changed paths10 files
First-parent comparisoncompiler/forget/src/HIR/HIR.ts ModifiedM compiler/forget/src/Inference/InferReferenceEffects.ts ModifiedA compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-computed-mutate.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-computed-mutate.js AddedA compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-mutate.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-mutate.js AddedA compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-receiver-computed-mutate.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-receiver-computed-mutate.js AddedA compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-receiver-mutate.expect.md AddedA compiler/forget/src/__tests__/fixtures/hir/capturing-func-alias-receiver-mutate.js AddedPatch
Files changed
Rendering syntax-highlighted changes…