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)
3386private void SerializeMethodBodyExceptionHandlerTable(ExceptionRegionEncoder encoder, ImmutableArray<ExceptionHandlerRegion> regions) 3405if (!ExceptionRegionEncoder.IsSmallRegionCount(exceptionRegions.Length)) 3412if (!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)
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)
84if (!ExceptionRegionEncoder.IsExceptionRegionCountInBounds(exceptionRegionCount)) 92var regionEncoder = (exceptionRegionCount > 0) ? 93ExceptionRegionEncoder.SerializeTableHeader(Builder, exceptionRegionCount, hasSmallExceptionRegions) : default; 113public ExceptionRegionEncoder ExceptionRegions { get; } 115internal MethodBody(int bodyOffset, Blob instructions, ExceptionRegionEncoder exceptionRegions) 184if (!ExceptionRegionEncoder.IsExceptionRegionCountInBounds(exceptionRegionCount))