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