public static void CompileAssignment(Node node, ref List <Instruction> instructions)
        {
            CompileGeneral(node.Nodes[1], ref instructions);

            instructions.Add(new Instruction {
                OpCode = OperationCode.stloc,
                Value  = CurrentScope.GetIndexFromIdentifier(node.Nodes[0].Body)
            });
        }
 public static void CompileIdentifier(Node node, ref List <Instruction> instructions)
 {
     if (GettingProperty)
     {
         instructions.Add(new Instruction {
             OpCode = OperationCode.access,
             Value  = node.Body
         });
     }
     else
     {
         instructions.Add(new Instruction {
             OpCode = OperationCode.ldloc,
             Value  = CurrentScope.GetIndexFromIdentifier(((IdentifierNode)node).Body)
         });
     }
 }