81 references to ScopeType
Microsoft.CodeAnalysis (64)
CodeGen\ILBuilder.cs (13)
406if (srcHandler.Type == ScopeType.Try) 1093internal void OpenLocalScope(ScopeType scopeType = ScopeType.Variable, Cci.ITypeReference exceptionType = null) 1095if (scopeType == ScopeType.TryCatchFinally && IsJustPastLabel()) 1101if (scopeType == ScopeType.Finally) 1118case ScopeType.Try: 1123case ScopeType.Catch: 1124case ScopeType.Filter: 1125case ScopeType.Finally: 1126case ScopeType.Fault: 1137case ScopeType.Variable: 1138case ScopeType.TryCatchFinally: 1139case 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); 610case ScopeType.Finally: 611case ScopeType.Fault: 649case ScopeType.Try: 651case ScopeType.Catch: 653case ScopeType.Filter: 655case ScopeType.Finally: 691public override ScopeType Type => ScopeType.TryCatchFinally; 693public override ScopeInfo OpenScope(ScopeType scopeType, 697Debug.Assert(((_handlers.Count == 0) && (scopeType == ScopeType.Try)) || 698((_handlers.Count > 0) && ((scopeType == ScopeType.Catch) || (scopeType == ScopeType.Filter) || (scopeType == ScopeType.Finally) || (scopeType == ScopeType.Fault)))); 732if (_handlers[1].Type == ScopeType.Finally) 766Debug.Assert(handlerScope.Type == ScopeType.Try); 787case ScopeType.Finally: 791case ScopeType.Fault: 795case ScopeType.Catch: 799case ScopeType.Filter: 845if (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)