1 instantiation of ExceptionRegionEncoder
System.Reflection.Metadata (1)
System\Reflection\Metadata\Ecma335\Encoding\ExceptionRegionEncoder.cs (1)
105return new ExceptionRegionEncoder(builder, hasSmallFormat);
22 references to ExceptionRegionEncoder
Microsoft.CodeAnalysis (4)
PEWriter\MetadataWriter.cs (4)
3374private void SerializeMethodBodyExceptionHandlerTable(ExceptionRegionEncoder encoder, ImmutableArray<ExceptionHandlerRegion> regions) 3393if (!ExceptionRegionEncoder.IsSmallRegionCount(exceptionRegions.Length)) 3400if (!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)
208if (!ExceptionRegionEncoder.IsValidCatchTypeHandle(catchType)) 373var regionEncoder = ExceptionRegionEncoder.SerializeTableHeader(builder, _lazyExceptionHandlers.Count, HasSmallExceptionRegions()); 416if (!ExceptionRegionEncoder.IsSmallRegionCount(_lazyExceptionHandlers.Count)) 423if (!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)
80internal static ExceptionRegionEncoder SerializeTableHeader(BlobBuilder builder, int exceptionRegionCount, bool hasSmallRegions) 120public ExceptionRegionEncoder AddFinally(int tryOffset, int tryLength, int handlerOffset, int handlerLength) 137public ExceptionRegionEncoder AddFault(int tryOffset, int tryLength, int handlerOffset, int handlerLength) 158public ExceptionRegionEncoder AddCatch(int tryOffset, int tryLength, int handlerOffset, int handlerLength, EntityHandle catchType) 176public ExceptionRegionEncoder AddFilter(int tryOffset, int tryLength, int handlerOffset, int handlerLength, int filterOffset) 203public ExceptionRegionEncoder Add(
System\Reflection\Metadata\Ecma335\Encoding\MethodBodyStreamEncoder.cs (6)
87if (!ExceptionRegionEncoder.IsExceptionRegionCountInBounds(exceptionRegionCount)) 95var regionEncoder = (exceptionRegionCount > 0) ? 96ExceptionRegionEncoder.SerializeTableHeader(Builder, exceptionRegionCount, hasSmallExceptionRegions) : default; 116public ExceptionRegionEncoder ExceptionRegions { get; } 118internal MethodBody(int bodyOffset, Blob instructions, ExceptionRegionEncoder exceptionRegions) 187if (!ExceptionRegionEncoder.IsExceptionRegionCountInBounds(exceptionRegionCount))