コード例 #1
0
 public override void VisitIncrement(ASTIncrement n)
 {
     ApplyIncrementDecrement(n.Expression, OpCodes.Add);
 }
コード例 #2
0
ファイル: ThirdPass.cs プロジェクト: goric/cflat
 /// <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);
 }