44 references to LabelScopeKind
System.Core (44)
Microsoft\Scripting\Compiler\LabelInfo.cs (15)
151if (j.Kind == LabelScopeKind.Finally || 152j.Kind == LabelScopeKind.Filter) { 155if (j.Kind == LabelScopeKind.Try || 156j.Kind == LabelScopeKind.Catch) { 179if (j.Kind == LabelScopeKind.Finally) { 182if (j.Kind == LabelScopeKind.Filter) { 185if (j.Kind == LabelScopeKind.Try || 186j.Kind == LabelScopeKind.Catch) { 194if (j.Kind == LabelScopeKind.Expression) { 309internal readonly LabelScopeKind Kind; 312internal LabelScopeInfo(LabelScopeInfo parent, LabelScopeKind kind) { 323case LabelScopeKind.Block: 324case LabelScopeKind.Statement: 325case LabelScopeKind.Switch: 326case LabelScopeKind.Lambda:
Microsoft\Scripting\Compiler\LambdaCompiler.ControlFlow.cs (14)
52private void PushLabelBlock(LabelScopeKind type) { 57private void PopLabelBlock(LabelScopeKind kind) { 71if (_labelBlock.Kind == LabelScopeKind.Block) { 75if (label == null && _labelBlock.Parent.Kind == LabelScopeKind.Switch) { 146if (_labelBlock.Kind != LabelScopeKind.Expression) { 147PushLabelBlock(LabelScopeKind.Expression); 155if (_labelBlock.Kind == LabelScopeKind.Block) { 160if (_labelBlock.Parent.Kind == LabelScopeKind.Switch && 165PushLabelBlock(LabelScopeKind.Statement); 173PushLabelBlock(LabelScopeKind.Block); 176if (_labelBlock.Parent.Kind != LabelScopeKind.Switch) { 181PushLabelBlock(LabelScopeKind.Switch); 198PushLabelBlock(LabelScopeKind.Statement); 204PushLabelBlock(LabelScopeKind.Statement);
Microsoft\Scripting\Compiler\LambdaCompiler.cs (1)
56private LabelScopeInfo _labelBlock = new LabelScopeInfo(null, LabelScopeKind.Lambda);
Microsoft\Scripting\Compiler\LambdaCompiler.Lambda.cs (1)
196Debug.Assert(_labelBlock.Parent == null && _labelBlock.Kind == LabelScopeKind.Lambda);
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (13)
142PushLabelBlock(LabelScopeKind.Statement); 152PopLabelBlock(LabelScopeKind.Statement); 665if (j.Kind == LabelScopeKind.Catch) { 667} else if (j.Kind == LabelScopeKind.Finally) { 680if (j.Kind == LabelScopeKind.Filter) { 706PushLabelBlock(LabelScopeKind.Try); 727PushLabelBlock(LabelScopeKind.Catch); 751PopLabelBlock(LabelScopeKind.Catch); 759PushLabelBlock(LabelScopeKind.Finally); 771PopLabelBlock(LabelScopeKind.Finally); 780PopLabelBlock(LabelScopeKind.Try); 812PushLabelBlock(LabelScopeKind.Filter); 814PopLabelBlock(LabelScopeKind.Filter);