public override void VisitIncrement(ASTIncrement n) { ApplyIncrementDecrement(n.Expression, OpCodes.Add); }
/// <summary> /// These guys are a little trickier, can't just increment anything that typechecks to a numeric type /// </summary> /// <param name="n"></param> public override void VisitIncrement(ASTIncrement n) { //the second parameter, the string is simply for display purposes, I'm not doing any logic with it, cause that would be hella stupid _lastSeenType = n.CFlatType = TypeCheckIncrementDecrement(n.Expression, "++", n.Location); }