dillon1000/react
Commit
Browse files Ensure unique BlockId for nested functions
This PR ensures that we use a single id space for the `BlockId`s in both top-level functions as well as any nested FunctionExpressions (note, we already do this for `IdentifierId`). This will make it easier for follow-ups to merge the CFG of nested functions (ie useMemo bodies) with the parent without block id collisions.
Changed paths2 files
First-parent comparisoncompiler/forget/src/HIR/Environment.ts ModifiedM compiler/forget/src/HIR/HIRBuilder.ts ModifiedPatch
Files changed
Rendering syntax-highlighted changes…