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