[be] Factor out named type for JSXText instr variant
Joe Savona committed
Oct 10, 2023 at 13:15 UTC
a92bfd7fdc443fe7ae998c6459fd563586c8756d
1 file changed
+3
-1
compiler/packages/babel-plugin-react-forget/src/HIR/HIR.ts
+3
-1
@@ -692,7 +692,7 @@ export type InstructionValue =
692
value: number | boolean | string | null | undefined;
693
loc: SourceLocation;
694
}
695
- | { kind: "JSXText"; value: string; loc: SourceLocation }
695
+ | JSXText
696
| {
697
kind: "BinaryExpression";
698
operator: t.BinaryExpression["operator"];
@@ -889,6 +889,8 @@ export type Primitive = {
889
loc: SourceLocation;
890
};
891
892
+export type JSXText = { kind: "JSXText"; value: string; loc: SourceLocation };
893
+
894
export type LoadGlobal = {
895
kind: "LoadGlobal";
896
name: string;