[easy] rename InferReference{Capability=>Effects}
Forgot to rename the function/file when changing from capability to effect. #accept2ship
Joseph Savona committed
Oct 18, 2022 at 08:49 UTC
704d936009d025bd616dca04b5440fd509d7e2bf
2 files changed
+3
-3
compiler/forget/src/HIR/InferReferenceEffects.ts
renamed
+1
-1
@@ -64,7 +64,7 @@ import { printMixedHIR } from "./PrintHIR";
64
* When control flow paths converge the types of values are merged together, with the value
65
* types forming a lattice to ensure convergence.
66
*/
67
-export default function inferReferenceCapability(fn: HIRFunction) {
67
+export default function inferReferenceEffects(fn: HIRFunction) {
68
// Initial environment contains function params
69
// TODO: include module declarations here as well
70
const initialEnvironment = Environment.empty();
compiler/forget/src/__tests__/hir-test.ts
+2
-2
@@ -17,7 +17,7 @@ import prettier from "prettier";
17
import { lower } from "../HIR/BuildHIR";
18
import codegen from "../HIR/Codegen";
19
import { HIRFunction } from "../HIR/HIR";
20
-import inferReferenceCapability from "../HIR/InferReferenceCapability";
20
+import inferReferenceEffects from "../HIR/InferReferenceEffects";
21
import printHIR from "../HIR/PrintHIR";
22
import generateTestsFromFixtures from "./test-utils/generateTestsFromFixtures";
23
@@ -44,7 +44,7 @@ describe("React Forget (HIR version)", () => {
44
FunctionDeclaration: {
45
enter(nodePath) {
46
const ir: HIRFunction = lower(nodePath);
47
- inferReferenceCapability(ir);
47
+ inferReferenceEffects(ir);
48
// const lifetimeGraph = buildDefUseGraph(ir);
49
const textHIR = printHIR(ir.body);
50
// const textLifetimeGraph = printGraph(lifetimeGraph);