From 704d936009d025bd616dca04b5440fd509d7e2bf Mon Sep 17 00:00:00 2001 From: Joseph Savona Date: Tue, 18 Oct 2022 08:49:31 -0700 Subject: [PATCH] [easy] rename InferReference{Capability=>Effects} Forgot to rename the function/file when changing from capability to effect. #accept2ship --- .../{InferReferenceCapability.ts => InferReferenceEffects.ts} | 2 +- compiler/forget/src/__tests__/hir-test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename compiler/forget/src/HIR/{InferReferenceCapability.ts => InferReferenceEffects.ts} (99%) 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);