[be] Factor out named type for JSXText instr variant

This commit is contained in:
Joe Savona
2023-10-10 13:15:42 -07:00
parent ba23b990ac
commit a92bfd7fdc
@@ -692,7 +692,7 @@ export type InstructionValue =
value: number | boolean | string | null | undefined;
loc: SourceLocation;
}
| { kind: "JSXText"; value: string; loc: SourceLocation }
| JSXText
| {
kind: "BinaryExpression";
operator: t.BinaryExpression["operator"];
@@ -889,6 +889,8 @@ export type Primitive = {
loc: SourceLocation;
};
export type JSXText = { kind: "JSXText"; value: string; loc: SourceLocation };
export type LoadGlobal = {
kind: "LoadGlobal";
name: string;