44 references to LabelScopeKind
System.Linq.Expressions (44)
System\Linq\Expressions\Compiler\LabelInfo.cs (15)
140if (j.Kind == LabelScopeKind.Finally || 141j.Kind == LabelScopeKind.Filter) 145if (j.Kind == LabelScopeKind.Try || 146j.Kind == LabelScopeKind.Catch) 173if (j!.Kind == LabelScopeKind.Finally) 177if (j.Kind == LabelScopeKind.Filter) 181if (j.Kind == LabelScopeKind.Try || 182j.Kind == LabelScopeKind.Catch) 193if (j.Kind == LabelScopeKind.Expression) 330internal readonly LabelScopeKind Kind; 333internal LabelScopeInfo(LabelScopeInfo? parent, LabelScopeKind kind) 348case LabelScopeKind.Block: 349case LabelScopeKind.Statement: 350case LabelScopeKind.Switch: 351case LabelScopeKind.Lambda:
System\Linq\Expressions\Compiler\LambdaCompiler.ControlFlow.cs (14)
40private void PushLabelBlock(LabelScopeKind type) 45private void PopLabelBlock(LabelScopeKind kind) 61if (_labelBlock.Kind == LabelScopeKind.Block) 66if (label == null && _labelBlock.Parent!.Kind == LabelScopeKind.Switch) 150if (_labelBlock.Kind != LabelScopeKind.Expression) 152PushLabelBlock(LabelScopeKind.Expression); 160if (_labelBlock.Kind == LabelScopeKind.Block) 167if (_labelBlock.Parent!.Kind == LabelScopeKind.Switch && 173PushLabelBlock(LabelScopeKind.Statement); 182PushLabelBlock(LabelScopeKind.Block); 185if (_labelBlock.Parent!.Kind != LabelScopeKind.Switch) 191PushLabelBlock(LabelScopeKind.Switch); 210PushLabelBlock(LabelScopeKind.Statement); 216PushLabelBlock(LabelScopeKind.Statement);
System\Linq\Expressions\Compiler\LambdaCompiler.cs (1)
47private LabelScopeInfo _labelBlock = new LabelScopeInfo(null, LabelScopeKind.Lambda);
System\Linq\Expressions\Compiler\LambdaCompiler.Lambda.cs (1)
246Debug.Assert(_labelBlock.Parent == null && _labelBlock.Kind == LabelScopeKind.Lambda);
System\Linq\Expressions\Compiler\LambdaCompiler.Statements.cs (13)
143PushLabelBlock(LabelScopeKind.Statement); 153PopLabelBlock(LabelScopeKind.Statement); 767if (j.Kind == LabelScopeKind.Catch) 771else if (j.Kind == LabelScopeKind.Finally) 787if (j.Kind == LabelScopeKind.Filter) 819PushLabelBlock(LabelScopeKind.Try); 842PushLabelBlock(LabelScopeKind.Catch); 870PopLabelBlock(LabelScopeKind.Catch); 879PushLabelBlock(LabelScopeKind.Finally); 894PopLabelBlock(LabelScopeKind.Finally); 906PopLabelBlock(LabelScopeKind.Try); 940PushLabelBlock(LabelScopeKind.Filter); 942PopLabelBlock(LabelScopeKind.Filter);