示例#1
0
 public YieldExceptionHandlerInfo(HashSet <int> tryStates, MethodDefinition finallyMethodDef)
 {
     this(tryStates);
     this.handlerType      = 0;
     this.finallyMethodDef = finallyMethodDef;
     return;
 }
示例#2
0
 public YieldExceptionHandlerInfo(int tryBegin, int tryEnd, int nextState, FieldReference enumeratorField, FieldReference disposableField)
     : this(tryBegin, tryEnd)
 {
     this.handlerType     = enumeratorField == null ? YieldExceptionHandlerType.SimpleConditionalDispose : YieldExceptionHandlerType.ConditionalDispose;
     this.nextState       = nextState;
     this.enumeratorField = enumeratorField;
     this.disposableField = disposableField;
 }
 public YieldExceptionHandlerInfo(HashSet <int> tryStates, int nextState, FieldReference enumeratorField, FieldReference disposableField)
     : this(tryStates)
 {
     this.handlerType     = enumeratorField == null ? YieldExceptionHandlerType.SimpleConditionalDispose : YieldExceptionHandlerType.ConditionalDispose;
     this.nextState       = nextState;
     this.enumeratorField = enumeratorField;
     this.disposableField = disposableField;
 }
 private YieldExceptionHandlerInfo(HashSet <int> tryStates)
 {
     this.tryStates        = tryStates;
     this.handlerType      = default(YieldExceptionHandlerType);
     this.finallyMethodDef = null;
     this.nextState        = -1;
     this.enumeratorField  = null;
     this.disposableField  = null;
 }
示例#5
0
 private YieldExceptionHandlerInfo(int tryBegin, int tryEnd)
 {
     this.tryBegin         = tryBegin;
     this.tryEnd           = tryEnd;
     this.handlerType      = default(YieldExceptionHandlerType);
     this.finallyMethodDef = null;
     this.nextState        = -1;
     this.enumeratorField  = null;
     this.disposableField  = null;
 }
示例#6
0
 public YieldExceptionHandlerInfo(HashSet <int> tryStates, int nextState, FieldReference enumeratorField, FieldReference disposableField)
 {
     this(tryStates);
     if (enumeratorField == null)
     {
         stackVariable4 = 1;
     }
     else
     {
         stackVariable4 = 2;
     }
     this.handlerType     = stackVariable4;
     this.nextState       = nextState;
     this.enumeratorField = enumeratorField;
     this.disposableField = disposableField;
     return;
 }
示例#7
0
 public YieldExceptionHandlerInfo(int tryBegin, int tryEnd, MethodDefinition finallyMethodDef)
     : this(tryBegin, tryEnd)
 {
     this.handlerType      = YieldExceptionHandlerType.Method;
     this.finallyMethodDef = finallyMethodDef;
 }
 public YieldExceptionHandlerInfo(HashSet <int> tryStates, MethodDefinition finallyMethodDef)
     : this(tryStates)
 {
     this.handlerType      = YieldExceptionHandlerType.Method;
     this.finallyMethodDef = finallyMethodDef;
 }