~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to contrib/Mono.Debugger.Soft/Mono.Debugger.Soft/ILExceptionHandler.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
using System;
 
2
using System.IO;
 
3
 
 
4
namespace Mono.Debugger.Soft
 
5
{
 
6
        public enum ILExceptionHandlerType
 
7
        {
 
8
                Catch = ExceptionClauseFlags.None,
 
9
                Filter = ExceptionClauseFlags.Filter,
 
10
                Finally = ExceptionClauseFlags.Finally,
 
11
                Fault = ExceptionClauseFlags.Fault,
 
12
        }
 
13
 
 
14
        public class ILExceptionHandler
 
15
        {
 
16
                public int TryOffset { get; internal set; }
 
17
                public int TryLength { get; internal set; }
 
18
                public ILExceptionHandlerType HandlerType { get; internal set; }
 
19
                public int HandlerOffset { get; internal set; }
 
20
                public int HandlerLength { get; internal set;}
 
21
                public int FilterOffset { get; internal set; }
 
22
                public TypeMirror CatchType { get; internal set; }
 
23
 
 
24
                internal ILExceptionHandler (int try_offset, int try_length, ILExceptionHandlerType handler_type, int handler_offset, int handler_length)
 
25
                {
 
26
                        TryOffset = try_offset;
 
27
                        TryLength = try_length;
 
28
                        HandlerType = handler_type;
 
29
                        HandlerOffset = handler_offset;
 
30
                        HandlerLength = handler_length;
 
31
                }
 
32
        }
 
33
}