From da6d84049e67cd2c9e0bdfd042d040929c02906d Mon Sep 17 00:00:00 2001 From: Jan Kassens Date: Wed, 23 Nov 2022 10:48:53 -0500 Subject: [PATCH] easy: name InstructionKind enum values (#818) --- compiler/forget/src/HIR/HIR.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/compiler/forget/src/HIR/HIR.ts b/compiler/forget/src/HIR/HIR.ts index ac55b84ea7..95055f8704 100644 --- a/compiler/forget/src/HIR/HIR.ts +++ b/compiler/forget/src/HIR/HIR.ts @@ -180,9 +180,18 @@ export type LValue = { }; export enum InstructionKind { - Const, // const declaration - Let, // let declaration - Reassign, // assing a new value to a let binding + /** + * const declaration + */ + Const = "Const", + /** + * let declaration + */ + Let = "Let", + /** + * assing a new value to a let binding + */ + Reassign = "Reassign", } /**