VariableDeclaration

- Prevent updating of the fields `varName`, `length` and `varType` after construction of the object
This commit is contained in:
Tristan B. Velloza Kildaire 2022-12-11 19:10:29 +02:00
parent 57a9e86d5f
commit 41e8db9a24
1 changed files with 3 additions and 3 deletions

View File

@ -69,13 +69,13 @@ public class VariableAssignmentInstr : Instruction
public final class VariableDeclaration : StorageDeclaration
{
/* Name of variable being declared */
public string varName;
public const string varName;
/* Length */
public byte length;
public const byte length;
/* Type of the variable being declared */
public string varType;
public const string varType;
//TODO: This must take in type information
this(string varName, byte len, string varType)