42 references to LabelScopeKind
System.Linq.Expressions (42)
System\Linq\Expressions\Interpreter\LabelInfo.cs (11)
106if (j.Kind == LabelScopeKind.Finally || j.Kind == LabelScopeKind.Filter) 130if (j!.Kind == LabelScopeKind.Finally) 134if (j.Kind == LabelScopeKind.Filter) 145if (j.Kind == LabelScopeKind.Expression) 278internal readonly LabelScopeKind Kind; 281internal LabelScopeInfo(LabelScopeInfo? parent, LabelScopeKind kind) 296case LabelScopeKind.Block: 297case LabelScopeKind.Statement: 298case LabelScopeKind.Switch: 299case LabelScopeKind.Lambda:
System\Linq\Expressions\Interpreter\LightCompiler.cs (31)
286private LabelScopeInfo _labelBlock = new LabelScopeInfo(null, LabelScopeKind.Lambda); 1529PushLabelBlock(LabelScopeKind.Statement); 1543PopLabelBlock(LabelScopeKind.Statement); 1752if (_labelBlock.Kind == LabelScopeKind.Block) 1757if (label == null && _labelBlock.Parent!.Kind == LabelScopeKind.Switch) 1799private void PushLabelBlock(LabelScopeKind type) 1804private void PopLabelBlock(LabelScopeKind kind) 1848if (_labelBlock.Kind != LabelScopeKind.Expression) 1850PushLabelBlock(LabelScopeKind.Expression); 1858if (_labelBlock.Kind == LabelScopeKind.Block) 1865if (_labelBlock.Parent!.Kind == LabelScopeKind.Switch && 1871PushLabelBlock(LabelScopeKind.Statement); 1874PushLabelBlock(LabelScopeKind.Block); 1877if (_labelBlock.Parent!.Kind != LabelScopeKind.Switch) 1883PushLabelBlock(LabelScopeKind.Switch); 1902PushLabelBlock(LabelScopeKind.Statement); 1908PushLabelBlock(LabelScopeKind.Statement); 1938if (j.Kind == LabelScopeKind.Catch) 1942else if (j.Kind == LabelScopeKind.Finally) 2011PushLabelBlock(LabelScopeKind.Try); 2037PushLabelBlock(LabelScopeKind.Filter); 2054PopLabelBlock(LabelScopeKind.Filter); 2057PushLabelBlock(LabelScopeKind.Catch); 2082PopLabelBlock(LabelScopeKind.Catch); 2091PushLabelBlock(LabelScopeKind.Finally); 2102PopLabelBlock(LabelScopeKind.Finally); 2113PopLabelBlock(LabelScopeKind.Try); 2129PushLabelBlock(LabelScopeKind.Try); 2140PushLabelBlock(LabelScopeKind.Finally); 2147PopLabelBlock(LabelScopeKind.Finally); 2148PopLabelBlock(LabelScopeKind.Try);