diff --git a/compiler/forget/src/HIR/InferReferenceCapability.ts b/compiler/forget/src/HIR/InferReferenceEffects.ts similarity index 99% rename from compiler/forget/src/HIR/InferReferenceCapability.ts rename to compiler/forget/src/HIR/InferReferenceEffects.ts index 8a7ccad309..c221daf71b 100644 --- a/compiler/forget/src/HIR/InferReferenceCapability.ts +++ b/compiler/forget/src/HIR/InferReferenceEffects.ts @@ -64,7 +64,7 @@ import { printMixedHIR } from "./PrintHIR"; * When control flow paths converge the types of values are merged together, with the value * types forming a lattice to ensure convergence. */ -export default function inferReferenceCapability(fn: HIRFunction) { +export default function inferReferenceEffects(fn: HIRFunction) { // Initial environment contains function params // TODO: include module declarations here as well const initialEnvironment = Environment.empty(); diff --git a/compiler/forget/src/__tests__/hir-test.ts b/compiler/forget/src/__tests__/hir-test.ts index 9a8bd19d41..5fd1f1794a 100644 --- a/compiler/forget/src/__tests__/hir-test.ts +++ b/compiler/forget/src/__tests__/hir-test.ts @@ -17,7 +17,7 @@ import prettier from "prettier"; import { lower } from "../HIR/BuildHIR"; import codegen from "../HIR/Codegen"; import { HIRFunction } from "../HIR/HIR"; -import inferReferenceCapability from "../HIR/InferReferenceCapability"; +import inferReferenceEffects from "../HIR/InferReferenceEffects"; import printHIR from "../HIR/PrintHIR"; import generateTestsFromFixtures from "./test-utils/generateTestsFromFixtures"; @@ -44,7 +44,7 @@ describe("React Forget (HIR version)", () => { FunctionDeclaration: { enter(nodePath) { const ir: HIRFunction = lower(nodePath); - inferReferenceCapability(ir); + inferReferenceEffects(ir); // const lifetimeGraph = buildDefUseGraph(ir); const textHIR = printHIR(ir.body); // const textLifetimeGraph = printGraph(lifetimeGraph);