81 references to ScopeType
Microsoft.CodeAnalysis (64)
CodeGen\ILBuilder.cs (13)
406
if (srcHandler.Type ==
ScopeType
.Try)
1093
internal void OpenLocalScope(
ScopeType
scopeType =
ScopeType
.Variable, Cci.ITypeReference exceptionType = null)
1095
if (scopeType ==
ScopeType
.TryCatchFinally && IsJustPastLabel())
1101
if (scopeType ==
ScopeType
.Finally)
1118
case
ScopeType
.Try:
1123
case
ScopeType
.Catch:
1124
case
ScopeType
.Filter:
1125
case
ScopeType
.Finally:
1126
case
ScopeType
.Fault:
1137
case
ScopeType
.Variable:
1138
case
ScopeType
.TryCatchFinally:
1139
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);
610
case
ScopeType
.Finally:
611
case
ScopeType
.Fault:
649
case
ScopeType
.Try:
651
case
ScopeType
.Catch:
653
case
ScopeType
.Filter:
655
case
ScopeType
.Finally:
691
public override
ScopeType
Type =>
ScopeType
.TryCatchFinally;
693
public override ScopeInfo OpenScope(
ScopeType
scopeType,
697
Debug.Assert(((_handlers.Count == 0) && (scopeType ==
ScopeType
.Try)) ||
698
((_handlers.Count > 0) && ((scopeType ==
ScopeType
.Catch) || (scopeType ==
ScopeType
.Filter) || (scopeType ==
ScopeType
.Finally) || (scopeType ==
ScopeType
.Fault))));
732
if (_handlers[1].Type ==
ScopeType
.Finally)
766
Debug.Assert(handlerScope.Type ==
ScopeType
.Try);
787
case
ScopeType
.Finally:
791
case
ScopeType
.Fault:
795
case
ScopeType
.Catch:
799
case
ScopeType
.Filter:
845
if (handlers.Count != 2 || handlers[1].Type !=
ScopeType
.Finally)
Microsoft.CodeAnalysis.CSharp (10)
CodeGen\EmitStatement.cs (10)
692
_builder.OpenLocalScope(
ScopeType
.TryCatchFinally);
694
_builder.OpenLocalScope(
ScopeType
.Try);
698
_builder.OpenLocalScope(
ScopeType
.Finally);
791
_builder.OpenLocalScope(
ScopeType
.StateMachineVariable);
911
_builder.OpenLocalScope(
ScopeType
.TryCatchFinally);
913
_builder.OpenLocalScope(
ScopeType
.Try);
942
_builder.OpenLocalScope(statement.PreferFaultHandler ?
ScopeType
.Fault :
ScopeType
.Finally);
1027
_builder.OpenLocalScope(
ScopeType
.Catch, exceptionType);
1060
_builder.OpenLocalScope(
ScopeType
.Filter);
Microsoft.CodeAnalysis.VisualBasic (7)
CodeGen\EmitStatement.vb (7)
126
_builder.OpenLocalScope(
ScopeType
.TryCatchFinally)
127
_builder.OpenLocalScope(
ScopeType
.Try)
150
_builder.OpenLocalScope(
ScopeType
.Finally)
226
_builder.OpenLocalScope(
ScopeType
.Filter)
266
_builder.OpenLocalScope(
ScopeType
.Catch, exceptionType)
273
_builder.OpenLocalScope(
ScopeType
.Filter)
1423
_builder.OpenLocalScope(
ScopeType
.StateMachineVariable)