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