64 references to ScopeType
Microsoft.CodeAnalysis (64)
CodeGen\ILBuilder.cs (13)
408
if (srcHandler.Type ==
ScopeType
.Try)
1104
internal void OpenLocalScope(
ScopeType
scopeType =
ScopeType
.Variable, Cci.ITypeReference exceptionType = null)
1106
if (scopeType ==
ScopeType
.TryCatchFinally && IsJustPastLabel())
1112
if (scopeType ==
ScopeType
.Finally)
1129
case
ScopeType
.Try:
1134
case
ScopeType
.Catch:
1135
case
ScopeType
.Filter:
1136
case
ScopeType
.Finally:
1137
case
ScopeType
.Fault:
1148
case
ScopeType
.Variable:
1149
case
ScopeType
.TryCatchFinally:
1150
case
ScopeType
.StateMachineVariable:
CodeGen\LocalScopeManager.cs (51)
37
internal ScopeInfo OpenScope(
ScopeType
scopeType, Cci.ITypeReference exceptionType)
82
case
ScopeType
.Try:
83
case
ScopeType
.Catch:
84
case
ScopeType
.Filter:
85
case
ScopeType
.Finally:
86
case
ScopeType
.Fault:
183
if (s.Type ==
ScopeType
.Try)
202
public abstract
ScopeType
Type { get; }
204
public virtual ScopeInfo OpenScope(
ScopeType
scopeType,
208
if (scopeType ==
ScopeType
.TryCatchFinally)
214
Debug.Assert(scopeType ==
ScopeType
.Variable || scopeType ==
ScopeType
.StateMachineVariable);
238
case
ScopeType
.Try:
239
case
ScopeType
.Catch:
240
case
ScopeType
.Filter:
241
case
ScopeType
.Finally:
242
case
ScopeType
.Fault:
323
public override
ScopeType
Type =>
ScopeType
.Variable;
326
ScopeType
scopeType,
547
private readonly
ScopeType
_type;
559
public ExceptionHandlerScope(ExceptionHandlerContainerScope containingScope,
ScopeType
type, Microsoft.Cci.ITypeReference exceptionType)
561
Debug.Assert((type ==
ScopeType
.Try) || (type ==
ScopeType
.Catch) || (type ==
ScopeType
.Filter) || (type ==
ScopeType
.Finally) || (type ==
ScopeType
.Fault));
562
Debug.Assert((type ==
ScopeType
.Catch) == (exceptionType != null));
571
public override
ScopeType
Type => _type;
600
Debug.Assert(_type ==
ScopeType
.Filter);
612
case
ScopeType
.Finally:
613
case
ScopeType
.Fault:
651
case
ScopeType
.Try:
653
case
ScopeType
.Catch:
655
case
ScopeType
.Filter:
657
case
ScopeType
.Finally:
693
public override
ScopeType
Type =>
ScopeType
.TryCatchFinally;
695
public override ScopeInfo OpenScope(
ScopeType
scopeType,
699
Debug.Assert(((_handlers.Count == 0) && (scopeType ==
ScopeType
.Try)) ||
700
((_handlers.Count > 0) && ((scopeType ==
ScopeType
.Catch) || (scopeType ==
ScopeType
.Filter) || (scopeType ==
ScopeType
.Finally) || (scopeType ==
ScopeType
.Fault))));
734
if (_handlers[1].Type ==
ScopeType
.Finally)
768
Debug.Assert(handlerScope.Type ==
ScopeType
.Try);
789
case
ScopeType
.Finally:
793
case
ScopeType
.Fault:
797
case
ScopeType
.Catch:
801
case
ScopeType
.Filter:
847
if (handlers.Count != 2 || handlers[1].Type !=
ScopeType
.Finally)