Пример #1
0
 /// <summary>
 /// When hitting a new TRY instruction, this provides stacking behavior with the current exception handling
 /// </summary>
 /// <param name="nInstruction"></param>
 /// <param name="tryInstruction"></param>
 void PushFinallyState(int nInstruction, FlatStatement tryInstruction)
 {
     EHInfo CurrentState = EHState;
     if (tryInstruction.Operands.Count == 1)
     {
         EHState = new EHInfo(CurrentState, nInstruction,tryInstruction.Operands[0], tryInstruction.Comment);
     }
     else
         EHState = new EHInfo(CurrentState, nInstruction, tryInstruction.Operands[0], tryInstruction.Operands[1]);
 }
Пример #2
0
 void PushFinallyState(int nInstruction, FlatStatement tryInstruction)
 {
     if (tryInstruction.Operands.Count == 1)
     {
         CurrentState = new FinallyState(CurrentState, nInstruction, tryInstruction.Operands[0], tryInstruction.Comment);
     }
     else
         CurrentState = new FinallyState(CurrentState, nInstruction, tryInstruction.Operands[0], tryInstruction.Operands[1]);
 }