dillon1000/react

Commit

Infer type of React function

Infer if a function is a component or hook when we're deciding to compile a 
function and store that in the environment. 

This is used in passes like InferReferenceEffects rather than having to re-parse 
the name in each pass.
Browse files
Changed paths6 files
First-parent comparison
M compiler/apps/playground/components/Editor/EditorImpl.tsx ModifiedM compiler/packages/babel-plugin-react-forget/scripts/jest/makeTransform.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/Entrypoint/Pipeline.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/Entrypoint/Program.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/HIR/Environment.ts ModifiedM compiler/packages/babel-plugin-react-forget/src/Inference/InferReferenceEffects.ts Modified
Patch

Files changed

Rendering syntax-highlighted changes…