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