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

◆ AddExceptionRegion()

void System.Reflection.Metadata.Ecma335.ControlFlowBuilder.AddExceptionRegion ( ExceptionRegionKind kind,
LabelHandle tryStart,
LabelHandle tryEnd,
LabelHandle handlerStart,
LabelHandle handlerEnd,
LabelHandle filterStart = default(LabelHandle),
EntityHandle catchType = default(EntityHandle) )
inlineprivate

Definition at line 162 of file ControlFlowBuilder.cs.

163 {
164 ValidateLabel(tryStart, "tryStart");
165 ValidateLabel(tryEnd, "tryEnd");
166 ValidateLabel(handlerStart, "handlerStart");
167 ValidateLabel(handlerEnd, "handlerEnd");
168 if (_lazyExceptionHandlers == null)
169 {
170 _lazyExceptionHandlers = ImmutableArray.CreateBuilder<ExceptionHandlerInfo>();
171 }
173 }
void Add(TKey key, TValue value)
void ValidateLabel(LabelHandle label, string parameterName)
ImmutableArray< ExceptionHandlerInfo >.Builder _lazyExceptionHandlers

References System.Reflection.Metadata.Ecma335.ControlFlowBuilder._lazyExceptionHandlers, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), and System.Reflection.Metadata.Ecma335.ControlFlowBuilder.ValidateLabel().

Referenced by System.Reflection.Metadata.Ecma335.ControlFlowBuilder.AddCatchRegion(), System.Reflection.Metadata.Ecma335.ControlFlowBuilder.AddFaultRegion(), System.Reflection.Metadata.Ecma335.ControlFlowBuilder.AddFilterRegion(), and System.Reflection.Metadata.Ecma335.ControlFlowBuilder.AddFinallyRegion().