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