@samitouri / QOS-React / commits / 3bda9f78c3

[hir] Introduce ObjectMethod type

This will be used to store fields representing an object method.

Sathya Gunasekaran committed Sep 15, 2023 at 16:28 UTC 3bda9f78c3ea8cfadf8cc3316f99a2ea9a5f38a7
1 file changed +7
compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts
+7
@@ -557,6 +557,13 @@ export type ObjectProperty = {
557 place: Place;
558 };
559
560 +export type ObjectMethod = {
561 + kind: "ObjectMethod";
562 + dependencies: Array<Place>;
563 + loweredFunc: HIRFunction;
564 + loc: SourceLocation;
565 +};
566 +
567 export enum InstructionKind {
568 /**
569 * const declaration