1 instantiation of ExceptionHandlerScope
Microsoft.CodeAnalysis (1)
CodeGen\LocalScopeManager.cs (1)
704
var handler = new
ExceptionHandlerScope
(this, scopeType, exceptionType);
38 references to ExceptionHandlerScope
Microsoft.CodeAnalysis (38)
CodeGen\BasicBlock.cs (6)
153
public virtual
ExceptionHandlerScope
EnclosingHandler => null;
678
public readonly
ExceptionHandlerScope
enclosingHandler;
680
public BasicBlockWithHandlerScope(ILBuilder builder,
ExceptionHandlerScope
enclosingHandler)
686
public override
ExceptionHandlerScope
EnclosingHandler => enclosingHandler;
693
public ExceptionHandlerLeaderBlock(ILBuilder builder,
ExceptionHandlerScope
enclosingHandler, BlockType type) :
715
public SwitchBlock(ILBuilder builder,
ExceptionHandlerScope
enclosingHandler) :
CodeGen\ILBuilder.cs (11)
185
private
ExceptionHandlerScope
EnclosingExceptionHandler => _scopeManager.EnclosingExceptionHandler;
307
var
enclosingFinally = block.EnclosingHandler;
376
var
srcHandler = src.EnclosingHandler;
387
private static object BlockedBranchDestinationSlow(
ExceptionHandlerScope
destHandler,
ExceptionHandlerScope
srcHandler)
539
var
currentHandler = targetBlock.EnclosingHandler;
540
var
newHandler = targetsTarget.EnclosingHandler;
599
var
currentHandler = targetBlock.EnclosingHandler;
600
var
newHandler = targetsTarget.EnclosingHandler;
619
private static bool CanMoveLabelToAnotherHandler(
ExceptionHandlerScope
currentHandler,
620
ExceptionHandlerScope
newHandler)
CodeGen\LocalScopeManager.cs (21)
26
private
ExceptionHandlerScope
_enclosingExceptionHandler;
44
_enclosingExceptionHandler = (
ExceptionHandlerScope
)scope;
74
internal
ExceptionHandlerScope
EnclosingExceptionHandler => _enclosingExceptionHandler;
76
private
ExceptionHandlerScope
GetEnclosingExceptionHandler()
87
return (
ExceptionHandlerScope
)scope;
206
ExceptionHandlerScope
currentHandler)
328
ExceptionHandlerScope
currentExceptionHandler)
382
var
enclosingHandler = builder.EnclosingExceptionHandler;
678
private readonly ImmutableArray<
ExceptionHandlerScope
>.Builder _handlers;
680
private readonly
ExceptionHandlerScope
_containingHandler;
682
public ExceptionHandlerContainerScope(
ExceptionHandlerScope
containingHandler)
684
_handlers = ImmutableArray.CreateBuilder<
ExceptionHandlerScope
>(2);
689
public
ExceptionHandlerScope
ContainingHandler => _containingHandler;
697
ExceptionHandlerScope
currentExceptionHandler)
704
var
handler = new ExceptionHandlerScope(this, scopeType, exceptionType);
714
var
tryScope = _handlers[0];
719
var
handlerScope = _handlers[i];
751
ExceptionHandlerScope
tryScope = null;
754
foreach (
var
handlerScope in _handlers)
820
private static ScopeBounds GetBounds(
ExceptionHandlerScope
scope)
832
foreach (
var
scope in _handlers)