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); 1510PushLabelBlock(LabelScopeKind.Statement); 1524PopLabelBlock(LabelScopeKind.Statement); 1733if (_labelBlock.Kind == LabelScopeKind.Block) 1738if (label == null && _labelBlock.Parent!.Kind == LabelScopeKind.Switch) 1780private void PushLabelBlock(LabelScopeKind type) 1785private void PopLabelBlock(LabelScopeKind kind) 1829if (_labelBlock.Kind != LabelScopeKind.Expression) 1831PushLabelBlock(LabelScopeKind.Expression); 1839if (_labelBlock.Kind == LabelScopeKind.Block) 1846if (_labelBlock.Parent!.Kind == LabelScopeKind.Switch && 1852PushLabelBlock(LabelScopeKind.Statement); 1855PushLabelBlock(LabelScopeKind.Block); 1858if (_labelBlock.Parent!.Kind != LabelScopeKind.Switch) 1864PushLabelBlock(LabelScopeKind.Switch); 1883PushLabelBlock(LabelScopeKind.Statement); 1889PushLabelBlock(LabelScopeKind.Statement); 1919if (j.Kind == LabelScopeKind.Catch) 1923else if (j.Kind == LabelScopeKind.Finally) 1992PushLabelBlock(LabelScopeKind.Try); 2018PushLabelBlock(LabelScopeKind.Filter); 2035PopLabelBlock(LabelScopeKind.Filter); 2038PushLabelBlock(LabelScopeKind.Catch); 2063PopLabelBlock(LabelScopeKind.Catch); 2072PushLabelBlock(LabelScopeKind.Finally); 2083PopLabelBlock(LabelScopeKind.Finally); 2094PopLabelBlock(LabelScopeKind.Try); 2110PushLabelBlock(LabelScopeKind.Try); 2121PushLabelBlock(LabelScopeKind.Finally); 2128PopLabelBlock(LabelScopeKind.Finally); 2129PopLabelBlock(LabelScopeKind.Try);