1 instantiation of ExceptionRegionEncoder
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (1)
105
return new
ExceptionRegionEncoder
(builder, hasSmallFormat);
22 references to ExceptionRegionEncoder
Microsoft.CodeAnalysis (4)
PEWriter\MetadataWriter.cs (4)
3386
private void SerializeMethodBodyExceptionHandlerTable(
ExceptionRegionEncoder
encoder, ImmutableArray<ExceptionHandlerRegion> regions)
3405
if (!
ExceptionRegionEncoder
.IsSmallRegionCount(exceptionRegions.Length))
3412
if (!
ExceptionRegionEncoder
.IsSmallExceptionRegion(region.TryStartOffset, region.TryLength) ||
3413
!
ExceptionRegionEncoder
.IsSmallExceptionRegion(region.HandlerStartOffset, region.HandlerLength))
System.Reflection.Metadata (18)
System\Reflection\Metadata\Ecma335\Encoding\ControlFlowBuilder.cs (6)
208
if (!
ExceptionRegionEncoder
.IsValidCatchTypeHandle(catchType))
373
var
regionEncoder =
ExceptionRegionEncoder
.SerializeTableHeader(builder, _lazyExceptionHandlers.Count, HasSmallExceptionRegions());
416
if (!
ExceptionRegionEncoder
.IsSmallRegionCount(_lazyExceptionHandlers.Count))
423
if (!
ExceptionRegionEncoder
.IsSmallExceptionRegionFromBounds(GetLabelOffsetChecked(handler.TryStart), GetLabelOffsetChecked(handler.TryEnd)) ||
424
!
ExceptionRegionEncoder
.IsSmallExceptionRegionFromBounds(GetLabelOffsetChecked(handler.HandlerStart), GetLabelOffsetChecked(handler.HandlerEnd)))
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (6)
80
internal static
ExceptionRegionEncoder
SerializeTableHeader(BlobBuilder builder, int exceptionRegionCount, bool hasSmallRegions)
120
public
ExceptionRegionEncoder
AddFinally(int tryOffset, int tryLength, int handlerOffset, int handlerLength)
137
public
ExceptionRegionEncoder
AddFault(int tryOffset, int tryLength, int handlerOffset, int handlerLength)
158
public
ExceptionRegionEncoder
AddCatch(int tryOffset, int tryLength, int handlerOffset, int handlerLength, EntityHandle catchType)
176
public
ExceptionRegionEncoder
AddFilter(int tryOffset, int tryLength, int handlerOffset, int handlerLength, int filterOffset)
203
public
ExceptionRegionEncoder
Add(
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (6)
84
if (!
ExceptionRegionEncoder
.IsExceptionRegionCountInBounds(exceptionRegionCount))
92
var
regionEncoder = (exceptionRegionCount > 0) ?
93
ExceptionRegionEncoder
.SerializeTableHeader(Builder, exceptionRegionCount, hasSmallExceptionRegions) : default;
113
public
ExceptionRegionEncoder
ExceptionRegions { get; }
115
internal MethodBody(int bodyOffset, Blob instructions,
ExceptionRegionEncoder
exceptionRegions)
184
if (!
ExceptionRegionEncoder
.IsExceptionRegionCountInBounds(exceptionRegionCount))