dillon1000/react
Commit
Browse files InferReferenceEffects: distinguish conditional mutations in HIR
In InferReferenceEffects, locations that are ConditionallyMutate are either recorded as a Mutate or Read, which means we lose the distinction btw conditional/unconditional mutation in later passes. This PR changes to remember that these places were conditionally mutable, used in later analysis.
Changed paths3 files
First-parent comparisoncompiler/forget/packages/babel-plugin-react-forget/src/HIR/HIR.ts ModifiedM compiler/forget/packages/babel-plugin-react-forget/src/Inference/InferReferenceEffects.ts ModifiedM compiler/forget/packages/babel-plugin-react-forget/src/__tests__/fixtures/compiler/error.invalid-pass-ref-to-function.expect.md ModifiedPatch
Files changed
Rendering syntax-highlighted changes…