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)
3374
private void SerializeMethodBodyExceptionHandlerTable(
ExceptionRegionEncoder
encoder, ImmutableArray<ExceptionHandlerRegion> regions)
3393
if (!
ExceptionRegionEncoder
.IsSmallRegionCount(exceptionRegions.Length))
3400
if (!
ExceptionRegionEncoder
.IsSmallExceptionRegion(region.TryStartOffset, region.TryLength) ||
3401
!
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)
87
if (!
ExceptionRegionEncoder
.IsExceptionRegionCountInBounds(exceptionRegionCount))
95
var
regionEncoder = (exceptionRegionCount > 0) ?
96
ExceptionRegionEncoder
.SerializeTableHeader(Builder, exceptionRegionCount, hasSmallExceptionRegions) : default;
116
public
ExceptionRegionEncoder
ExceptionRegions { get; }
118
internal MethodBody(int bodyOffset, Blob instructions,
ExceptionRegionEncoder
exceptionRegions)
187
if (!
ExceptionRegionEncoder
.IsExceptionRegionCountInBounds(exceptionRegionCount))