public static void MarkBlockAfter(this CecilILGenerator il, ExceptionBlock block)
 {
     if (block.blockType == ExceptionBlockType.EndExceptionBlock)
     {
         il.EndExceptionBlock();
     }
 }
Exemple #2
0
        internal void MarkBlockAfter(ExceptionBlock block)
        {
            if (block.blockType == ExceptionBlockType.EndExceptionBlock)
            {
                if (debug)
                {
                    // fake log a LEAVE code since BeginCatchBlock() does add it
                    LogIL(OpCodes.Leave, new LeaveTry());

                    FileLog.ChangeIndent(-1);
                    FileLog.LogBuffered("} // end handler");
                }
                il.EndExceptionBlock();
            }
        }