Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ HasSmallExceptionRegions()

bool System.Reflection.Metadata.Ecma335.ControlFlowBuilder.HasSmallExceptionRegions ( )
inlineprivate

Definition at line 250 of file ControlFlowBuilder.cs.

251 {
252 if (!ExceptionRegionEncoder.IsSmallRegionCount(_lazyExceptionHandlers.Count))
253 {
254 return false;
255 }
256 foreach (ExceptionHandlerInfo lazyExceptionHandler in _lazyExceptionHandlers)
257 {
258 if (!ExceptionRegionEncoder.IsSmallExceptionRegionFromBounds(GetLabelOffsetChecked(lazyExceptionHandler.TryStart), GetLabelOffsetChecked(lazyExceptionHandler.TryEnd)) || !ExceptionRegionEncoder.IsSmallExceptionRegionFromBounds(GetLabelOffsetChecked(lazyExceptionHandler.HandlerStart), GetLabelOffsetChecked(lazyExceptionHandler.HandlerEnd)))
259 {
260 return false;
261 }
262 }
263 return true;
264 }
ImmutableArray< ExceptionHandlerInfo >.Builder _lazyExceptionHandlers

References System.Reflection.Metadata.Ecma335.ControlFlowBuilder._lazyExceptionHandlers, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Reflection.Metadata.Ecma335.ControlFlowBuilder.GetLabelOffsetChecked(), System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder.IsSmallExceptionRegionFromBounds(), and System.Reflection.Metadata.Ecma335.ExceptionRegionEncoder.IsSmallRegionCount().

Referenced by System.Reflection.Metadata.Ecma335.ControlFlowBuilder.SerializeExceptionTable().