dillon1000/react
Commit
Browse files 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.
Changed paths6 files
First-parent comparisoncompiler/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…