From 3bda9f78c3ea8cfadf8cc3316f99a2ea9a5f38a7 Mon Sep 17 00:00:00 2001 From: Sathya Gunasekaran Date: Fri, 15 Sep 2023 16:28:44 +0100 Subject: [PATCH] [hir] Introduce ObjectMethod type This will be used to store fields representing an object method. --- compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts b/compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts index 75ade2c0a3..d086853ae7 100644 --- a/compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts +++ b/compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts @@ -557,6 +557,13 @@ export type ObjectProperty = { place: Place; }; +export type ObjectMethod = { + kind: "ObjectMethod"; + dependencies: Array; + loweredFunc: HIRFunction; + loc: SourceLocation; +}; + export enum InstructionKind { /** * const declaration