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