Example #1
0
 public override void GetIntCode(BuildICCode codeManager)
 {
     codeManager.UnaryOperationCheck(this);
     if (codeManager.special_object_return_type)
     {
         codeManager.SetReturnType("Int");
     }
 }
 public override void GetIntCode(BuildICCode codeManager)
 {
     if (Operand.StaticType.Text == "Int" || Operand.StaticType.Text == "String" || Operand.StaticType.Text == "Bool")
     {
         codeManager.codeLines.Add(new ICAssignConstToVar(codeManager.variableManager.PeekCounter(), 0));
     }
     else
     {
         codeManager.UnaryOperationCheck(this);
     }
     if (codeManager.special_object_return_type)
     {
         codeManager.SetReturnType("Bool");
     }
 }