[compiler] Export some helpers from PropagateScopeDepsHIR

ghstack-source-id: 80b058932a
Pull Request resolved: https://github.com/facebook/react/pull/31040
This commit is contained in:
Joe Savona
2024-09-23 17:10:41 -07:00
parent 4708fb92c2
commit 7fd25c5b52
@@ -80,7 +80,7 @@ export function propagateScopeDependenciesHIR(fn: HIRFunction): void {
}
}
function findTemporariesUsedOutsideDeclaringScope(
export function findTemporariesUsedOutsideDeclaringScope(
fn: HIRFunction,
): ReadonlySet<DeclarationId> {
/*
@@ -189,7 +189,7 @@ function findTemporariesUsedOutsideDeclaringScope(
* of $1, as the evaluation of `arr.length` changes between instructions $1 and
* $3. We do not track $1 -> arr.length in this case.
*/
function collectTemporariesSidemap(
export function collectTemporariesSidemap(
fn: HIRFunction,
usedOutsideDeclaringScope: ReadonlySet<DeclarationId>,
): ReadonlyMap<IdentifierId, ReactiveScopeDependency> {