dillon1000/react
Commit
Browse files [compiler] Refactor makeTemporary outside HIRBuilder
This is a useful utility function similar to the existing `makeInstructionId` and `makeIdentifierId` functions. This PR moves it outside the HIRBuilder so we can use this in passes that don't have access to the builder instance. ghstack-source-id: 1ac0839e6cb417aedcdf8cdd159af7069af7172a Pull Request resolved: https://github.com/facebook/react/pull/30545
Changed paths2 files
First-parent comparisoncompiler/packages/babel-plugin-react-compiler/src/HIR/HIR.ts ModifiedM compiler/packages/babel-plugin-react-compiler/src/HIR/HIRBuilder.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…