dillon1000/react

Commit

[hir] infer reference effects for property call

--- 

This PR does not add inference for normal `CallExpression`s, since built-in 
functions for `Array` and `Object` are usually only valid if called with a 
correctly-typed `this`. If we want codegen to preserve source code semantics, 
Forget should only add inferred types it is confident about. 

This PR also adds `returnEffect` to FunctionSignature. `returnEffect = Store` if 
this function is known to always return a captured value from `receiver` or 
`args`.
Browse files
Changed paths1 file
First-parent comparison
M compiler/forget/src/Inference/InferReferenceEffects.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…