54 references to ExceptionRegionKind
Microsoft.CodeAnalysis (9)
PEWriter\ExceptionHandlerRegion.cs (9)
62public abstract ExceptionRegionKind HandlerKind { get; } 96public override ExceptionRegionKind HandlerKind 98get { return ExceptionRegionKind.Finally; } 113public override ExceptionRegionKind HandlerKind 115get { return ExceptionRegionKind.Fault; } 134public override ExceptionRegionKind HandlerKind 136get { return ExceptionRegionKind.Catch; } 162public override ExceptionRegionKind HandlerKind 164get { return ExceptionRegionKind.Filter; }
Microsoft.CodeAnalysis.Test.Utilities (4)
Metadata\ILBuilderVisualizer.cs (4)
101if (region.HandlerKind == System.Reflection.Metadata.ExceptionRegionKind.Filter) 111case System.Reflection.Metadata.ExceptionRegionKind.Catch: 114case System.Reflection.Metadata.ExceptionRegionKind.Fault: 117case System.Reflection.Metadata.ExceptionRegionKind.Filter:
System.Reflection.Emit (10)
System\Reflection\Emit\ILGeneratorImpl.cs (10)
64case ExceptionRegionKind.Catch: 68case ExceptionRegionKind.Filter: 72case ExceptionRegionKind.Fault: 76case ExceptionRegionKind.Finally: 121_exceptionBlocks.Add(new ExceptionHandlerInfo(ExceptionRegionKind.Catch, currentExBlock.TryStart, 155_exceptionBlocks.Add(new ExceptionHandlerInfo(ExceptionRegionKind.Filter, currentExBlock.TryStart, 196_exceptionBlocks.Add(new ExceptionHandlerInfo(ExceptionRegionKind.Fault, currentExBlock.TryStart, 227_exceptionBlocks.Add(new ExceptionHandlerInfo(ExceptionRegionKind.Finally, currentExBlock.TryStart, 867public readonly ExceptionRegionKind Kind; 872ExceptionRegionKind kind,
System.Reflection.Metadata (30)
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (9)
66public readonly ExceptionRegionKind Kind; 71ExceptionRegionKind kind, 181AddExceptionRegion(ExceptionRegionKind.Finally, tryStart, tryEnd, handlerStart, handlerEnd); 193AddExceptionRegion(ExceptionRegionKind.Fault, tryStart, tryEnd, handlerStart, handlerEnd); 213AddExceptionRegion(ExceptionRegionKind.Catch, tryStart, tryEnd, handlerStart, handlerEnd, catchType: catchType); 229AddExceptionRegion(ExceptionRegionKind.Filter, tryStart, tryEnd, handlerStart, handlerEnd, filterStart: filterStart); 233ExceptionRegionKind kind, 397ExceptionRegionKind.Catch => MetadataTokens.GetToken(handler.CatchType), 398ExceptionRegionKind.Filter => GetLabelOffsetChecked(handler.FilterStart),
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (12)
122return Add(ExceptionRegionKind.Finally, tryOffset, tryLength, handlerOffset, handlerLength, default(EntityHandle), 0); 139return Add(ExceptionRegionKind.Fault, tryOffset, tryLength, handlerOffset, handlerLength, default(EntityHandle), 0); 160return Add(ExceptionRegionKind.Catch, tryOffset, tryLength, handlerOffset, handlerLength, catchType, 0); 178return Add(ExceptionRegionKind.Filter, tryOffset, tryLength, handlerOffset, handlerLength, default(EntityHandle), filterOffset); 191/// or nil if <paramref name="kind"/> is not <see cref="ExceptionRegionKind.Catch"/> 194/// Offset of the filter block, or 0 if the <paramref name="kind"/> is not <see cref="ExceptionRegionKind.Filter"/>. 204ExceptionRegionKind kind, 235case ExceptionRegionKind.Catch: 244case ExceptionRegionKind.Filter: 253case ExceptionRegionKind.Finally: 254case ExceptionRegionKind.Fault: 267ExceptionRegionKind kind,
System\Reflection\Metadata\IL\ExceptionRegion.cs (5)
8private readonly ExceptionRegionKind _kind; 16ExceptionRegionKind kind, 31public ExceptionRegionKind Kind 73get { return (Kind == ExceptionRegionKind.Filter) ? _classTokenOrFilterOffset : -1; } 81get { return (Kind == ExceptionRegionKind.Catch) ? new EntityHandle((uint)_classTokenOrFilterOffset) : default(EntityHandle); }
System\Reflection\Metadata\IL\MethodBodyBlock.cs (4)
197var kind = (ExceptionRegionKind)memReader.ReadUInt16(); 214var sehFlags = (ExceptionRegionKind)memReader.ReadUInt32();
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\General\Ecma\EcmaHelpers.cs (1)
96public static ExceptionHandlingClauseOptions ToExceptionHandlingClauseOptions(this ExceptionRegionKind kind) => (ExceptionHandlingClauseOptions)kind;