mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[easy] rename InferReference{Capability=>Effects}
Forgot to rename the function/file when changing from capability to effect. #accept2ship
This commit is contained in:
+1
-1
@@ -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();
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user