@samitouri / QOS-React-2 / commits / da6d84049e

easy: name InstructionKind enum values (#818)

Jan Kassens committed Nov 23, 2022 at 10:48 UTC da6d84049e67cd2c9e0bdfd042d040929c02906d
1 file changed +12 -3
compiler/forget/src/HIR/HIR.ts
+12 -3
@@ -180,9 +180,18 @@ export type LValue = {
180 };
181
182 export enum InstructionKind {
183 - Const, // const declaration
184 - Let, // let declaration
185 - Reassign, // assing a new value to a let binding
183 + /**
184 + * const declaration
185 + */
186 + Const = "Const",
187 + /**
188 + * let declaration
189 + */
190 + Let = "Let",
191 + /**
192 + * assing a new value to a let binding
193 + */
194 + Reassign = "Reassign",
195 }
196
197 /**